From ff20b8a02e097e280d555e20568ed08b7bd15d94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 01:05:17 +0000 Subject: [PATCH] Bump factory_bot_rails from 4.8.2 to 6.2.0 Note we're changing the parent strategy because its default value changed in Factory Bot 5. We're keeping the old one so it's compatible with our test suite. We're also removing the rubocop rule for static attributes because in factory bot 5 this syntax is invalid and will raise an error, so there's no need for rubocop to remind us about it. Bumps [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails) from 4.8.2 to 6.2.0. - [Release notes](https://github.com/thoughtbot/factory_bot_rails/releases) - [Changelog](https://github.com/thoughtbot/factory_bot_rails/blob/master/NEWS.md) - [Commits](https://github.com/thoughtbot/factory_bot_rails/compare/v4.8.2...v6.2.0) --- updated-dependencies: - dependency-name: factory_bot_rails dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .rubocop.yml | 3 --- Gemfile | 2 +- Gemfile.lock | 12 ++++++------ spec/rails_helper.rb | 2 ++ 4 files changed, 9 insertions(+), 10 deletions(-) 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" => {