提交 bd838c0e 编写于 作者: P Piotr Sarnacki

Fix railties tests

Minitest uses different signature for assert_no_match, so we have to
swap arguments.
上级 099bb5d7
...@@ -66,7 +66,7 @@ def test_namespaced_controller_dont_indent_blank_lines ...@@ -66,7 +66,7 @@ def test_namespaced_controller_dont_indent_blank_lines
run_generator run_generator
assert_file "app/controllers/test_app/account_controller.rb" do |content| assert_file "app/controllers/test_app/account_controller.rb" do |content|
content.split("\n").each do |line| 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 end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册