diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-11 12:31:12 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-11 12:33:23 +0900 |
commit | a2338c583349ebd48f3c9ec18f1df5c7cf21dfdb (patch) | |
tree | f55bcaa9bbf372ab1153b43589c8b32f00021804 /railties/test | |
parent | 5465224892281a088422df438e4fc0ce7f6c8f5e (diff) | |
download | rails-a2338c583349ebd48f3c9ec18f1df5c7cf21dfdb.tar.gz rails-a2338c583349ebd48f3c9ec18f1df5c7cf21dfdb.tar.bz2 rails-a2338c583349ebd48f3c9ec18f1df5c7cf21dfdb.zip |
remove warnings from rake test
This removes the following warnings.
```
test/application/rake_test.rb:33: warning: ambiguous first argument; put parentheses or a space even after `/' operator
test/application/rake_test.rb:43: warning: ambiguous first argument; put parentheses or a space even after `/' operator
```
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/rake_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 5ea4b28acb..639875dd6e 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -30,7 +30,7 @@ module ApplicationTests 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 @@ module ApplicationTests 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 |