1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Using local gems should be enough for testing (#1504)

This commit is contained in:
Vít Ondruch 2022-08-25 16:07:57 +02:00 committed by GitHub
parent b2848b2ca7
commit b15a0f9018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ module AcceptanceTests
def add_rspec_rails_to_project! def add_rspec_rails_to_project!
add_gem 'rspec-rails', rspec_rails_version add_gem 'rspec-rails', rspec_rails_version
run_command_within_bundle!('bundle install --binstubs') if rails_gt_6_0? run_command_within_bundle!('bundle install --local --binstubs') if rails_gt_6_0?
run_command_within_bundle!('rails g rspec:install') run_command_within_bundle!('rails g rspec:install')
remove_from_file '.rspec', '--warnings' remove_from_file '.rspec', '--warnings'
end end