diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb index 6f00fc5d2666ff374302ab2cf7f04d685fca1808..00d4566604a734446c294fea97d7b1a9c3225675 100644 --- a/railties/test/generators/namespaced_generators_test.rb +++ b/railties/test/generators/namespaced_generators_test.rb @@ -66,7 +66,7 @@ def test_namespaced_controller_dont_indent_blank_lines run_generator assert_file "app/controllers/test_app/account_controller.rb" do |content| content.split("\n").each do |line| - assert_no_match line, /^\s+$/, "Don't indent blank lines" + assert_no_match /^\s+$/, line, "Don't indent blank lines" end end end