提交 aeb0391c 编写于 作者: R Rafael Mendonça França

Merge pull request #19416 from akshay-vishnoi/test-correct

Fix test messages use directly true, false and nil instead of their symbol
...@@ -186,21 +186,21 @@ class TestWithLayout < Rack::TestCase ...@@ -186,21 +186,21 @@ class TestWithLayout < Rack::TestCase
end end
end end
test "rendering with layout => :true" do test "rendering with layout => true" do
get "/render_template/with_layout/with_layout" get "/render_template/with_layout/with_layout"
assert_body "Hello from basic.html.erb, I'm here!" assert_body "Hello from basic.html.erb, I'm here!"
assert_status 200 assert_status 200
end end
test "rendering with layout => :false" do test "rendering with layout => false" do
get "/render_template/with_layout/with_layout_false" get "/render_template/with_layout/with_layout_false"
assert_body "Hello from basic.html.erb" assert_body "Hello from basic.html.erb"
assert_status 200 assert_status 200
end end
test "rendering with layout => :nil" do test "rendering with layout => nil" do
get "/render_template/with_layout/with_layout_nil" get "/render_template/with_layout/with_layout_nil"
assert_body "Hello from basic.html.erb" assert_body "Hello from basic.html.erb"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册