Skip to content

Commit

Permalink
Bundler 2.4.19 removed the "Using " lines
Browse files Browse the repository at this point in the history
The latest release of Bundler [removed] the "Using " lines from the output
unless `--verbose` is passed. Ruby 3 ships with its own Bundler, which
still has that line, but Ruby 2.7 does not, so we install the latest on
CI. This is causing those tests to fail.

[removed]: rubygems/rubygems#6804
  • Loading branch information
mike-burns committed Sep 1, 2023
1 parent 3995e62 commit c05d1d3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions features/fixture_replacement_config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature:
And I add "factory_bot_rails" from this project as a dependency

Scenario: Using Factory Bot and Factory Bot Rails with Test Unit generates a factory file and does not generate a fixture file
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
| test/factories/users.rb |
Expand All @@ -23,7 +23,7 @@ Feature:
g.fixture_replacement :factory_bot
end
"""
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
Then the output should contain "rspec-rails"
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
Expand All @@ -40,7 +40,7 @@ Feature:
g.fixture_replacement :factory_bot, suffix: 'factory'
end
"""
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
Then the output should contain "rspec-rails"
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
Expand All @@ -51,7 +51,7 @@ Feature:
Scenario: Using Factory Bot and Factory Bot Rails does not override a manually-configured factories directory using RSpec
When I add "rspec-rails" as a dependency
And I configure the factories directory as "custom/dir"
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
Then the output should contain "rspec-rails"
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should not exist:
Expand All @@ -62,7 +62,7 @@ Feature:

Scenario: Using Factory Bot and Factory Bot Rails does not override a manually-configured factories directory using Test::Unit
When I configure the factories directory as "custom/dir"
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should not exist:
| test/factories/users.rb |
Expand All @@ -71,7 +71,7 @@ Feature:
| custom/dir/users.rb |

Scenario: Using Factory Bot Rails with MiniTest should generate a factory file
When I run `bundle install` with a clean environment
When I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
| test/factories/users.rb |
Expand All @@ -80,7 +80,7 @@ Feature:

Scenario: Using Factory Bot Rails with MiniTest and a custom directory should generate a factory file
When I configure the factories directory as "custom/dir"
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
| custom/dir/users.rb |
Expand All @@ -94,7 +94,7 @@ Feature:
g.factory_bot false
end
"""
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should not exist:
| test/factories/users.rb |
Expand All @@ -108,7 +108,7 @@ Feature:
g.factory_bot suffix: 'suffix'
end
"""
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
| spec/factories/users_suffix.rb |
Expand All @@ -123,7 +123,7 @@ Feature:
g.factory_bot filename_proc: Proc.new { |tb| "prefix_#{tb.singularize}_suffix" }
end
"""
And I run `bundle install` with a clean environment
And I run `bundle install --verbose` with a clean environment
And I run `bundle exec rails generate model User name:string` with a clean environment
Then the following files should exist:
| spec/factories/prefix_user_suffix.rb |
Expand Down

0 comments on commit c05d1d3

Please sign in to comment.