1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use Ruby >= 1.9 hash syntax as is the preference

This commit is contained in:
Steven Harman 2016-07-21 15:29:24 -04:00
parent ae75930b59
commit 578096b971

View file

@ -314,7 +314,7 @@ module RenderTestCases
y.yield(Customer.new("david"))
y.yield(Customer.new("mary"))
end
assert_equal "Hello: davidHello: mary", @view.render(:partial => "test/customer", collection: customers)
assert_equal "Hello: davidHello: mary", @view.render(partial: "test/customer", collection: customers)
end
def test_render_partial_without_object_does_not_put_partial_name_to_local_assigns