diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-02 10:28:04 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-02 10:29:57 -0200 |
commit | b63382ec062730699ddda50bf4aeec49cb2f60af (patch) | |
tree | 00e0d7c17eba268b282af402619347ce0f23017f /railties | |
parent | 120bf7444f231b01dafb45ae6232a68d71d9acc4 (diff) | |
download | rails-b63382ec062730699ddda50bf4aeec49cb2f60af.tar.gz rails-b63382ec062730699ddda50bf4aeec49cb2f60af.tar.bz2 rails-b63382ec062730699ddda50bf4aeec49cb2f60af.zip |
Remove warnings
warning: ambiguous first argument; put parentheses or a space even after
`/' operator'`
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/scaffold_generator_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/scaffold_generator_test.rb b/railties/test/generators/scaffold_generator_test.rb index 0d864c79f9..20b801f341 100644 --- a/railties/test/generators/scaffold_generator_test.rb +++ b/railties/test/generators/scaffold_generator_test.rb @@ -259,14 +259,14 @@ class ScaffoldGeneratorTest < Rails::Generators::TestCase def test_scaffold_generator_no_helper_with_switch_no_helper output = run_generator [ "posts", "--no-helper" ] - assert_no_match /error/, output + assert_no_match(/error/, output) assert_no_file "app/helpers/posts_helper.rb" end def test_scaffold_generator_no_helper_with_switch_helper_false output = run_generator [ "posts", "--helper=false" ] - assert_no_match /error/, output + assert_no_match(/error/, output) assert_no_file "app/helpers/posts_helper.rb" end |