Skip to content

Commit

Permalink
Fix railties tests
Browse files Browse the repository at this point in the history
Minitest uses different signature for assert_no_match, so we have to
swap arguments.
  • Loading branch information
drogus committed May 19, 2012
1 parent 099bb5d commit bd838c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/test/generators/namespaced_generators_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd838c0

Please sign in to comment.