Skip to content
Browse files

Fix railties tests

Minitest uses different signature for assert_no_match, so we have to
swap arguments.
  • Loading branch information...
1 parent 099bb5d commit bd838c0e74b31767944435585ade3edeed7990de @drogus drogus committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/generators/namespaced_generators_test.rb
View
2 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

0 comments on commit bd838c0

Please sign in to comment.
Something went wrong with that request. Please try again.