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:
parent
120bf7444f
commit
b63382ec06
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue