diff --git a/.rubocop.yml b/.rubocop.yml index 367a8dde3..aa678fbe8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -29,9 +29,6 @@ Capybara/FeatureMethods: Capybara/VisibilityMatcher: Enabled: true -FactoryBot/AttributeDefinedStatically: - Enabled: true - FactoryBot/FactoryClassName: Enabled: true diff --git a/Gemfile b/Gemfile index 6dd69ba6a..407d838e1 100644 --- a/Gemfile +++ b/Gemfile @@ -73,7 +73,7 @@ group :development, :test do gem "bullet", "~> 6.1.4" gem "byebug", "~> 11.1.3" gem "database_cleaner", "~> 2.0.1" - gem "factory_bot_rails", "~> 4.8.2" + gem "factory_bot_rails", "~> 6.2.0" gem "faker", "~> 1.8.7" gem "i18n-tasks", "~> 0.9.34" gem "knapsack_pro", "~> 2.11.0" diff --git a/Gemfile.lock b/Gemfile.lock index cb4d26253..e573b54d7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -230,11 +230,11 @@ GEM multi_json (>= 1.3) rake execjs (2.8.1) - factory_bot (4.8.2) - activesupport (>= 3.0.0) - factory_bot_rails (4.8.2) - factory_bot (~> 4.8.2) - railties (>= 3.0.0) + factory_bot (6.2.0) + activesupport (>= 5.0.0) + factory_bot_rails (6.2.0) + factory_bot (~> 6.2.0) + railties (>= 5.0.0) faker (1.8.7) i18n (>= 0.7) faraday (1.7.0) @@ -733,7 +733,7 @@ DEPENDENCIES devise-security (~> 0.11.1) email_spec (~> 2.2.0) erb_lint (~> 0.0.37) - factory_bot_rails (~> 4.8.2) + factory_bot_rails (~> 6.2.0) faker (~> 1.8.7) font-awesome-sass (~> 5.15.1) foundation-rails (~> 6.6.2.0) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index a3ecc187d..7b9be99a2 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -31,6 +31,8 @@ RSpec.configure do |config| end end +FactoryBot.use_parent_strategy = false + Capybara.register_driver :headless_chrome do |app| capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( "goog:chromeOptions" => {