Merge pull request #23003 from y-yagi/remove_warnings
remove warnings from rake test
This commit is contained in:
commit
179df9df68
@ -30,7 +30,7 @@ def test_the_test_rake_task_is_protected_when_previous_migration_was_production
|
||||
env RAILS_ENV=production bin/rake db:create db:migrate;
|
||||
env RAILS_ENV=production bin/rake db:test:prepare test 2>&1`
|
||||
|
||||
assert_match /ActiveRecord::ProtectedEnvironmentError/, output
|
||||
assert_match(/ActiveRecord::ProtectedEnvironmentError/, output)
|
||||
end
|
||||
end
|
||||
|
||||
@ -40,7 +40,7 @@ def test_not_protected_when_previous_migration_was_not_production
|
||||
env RAILS_ENV=test bin/rake db:create db:migrate;
|
||||
env RAILS_ENV=test bin/rake db:test:prepare test 2>&1`
|
||||
|
||||
refute_match /ActiveRecord::ProtectedEnvironmentError/, output
|
||||
refute_match(/ActiveRecord::ProtectedEnvironmentError/, output)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user