1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove warnings

warning: ambiguous first argument; put parentheses or a space even after
    `/' operator'`
This commit is contained in:
Carlos Antonio da Silva 2015-01-02 10:28:04 -02:00
parent 120bf7444f
commit b63382ec06

View file

@ -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