提交 a2338c58 编写于 作者: Y yuuji.yaginuma

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
```
上级 54652248
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册