serialization test: respect root settings when root object is nil

This commit is contained in:
Michi Huber 2013-02-26 11:12:28 +01:00
parent 9f93f34a34
commit 58a063eff0

View File

@ -227,7 +227,7 @@ class RenderJsonTest < ActionController::TestCase
def test_render_json_nil_with_custom_serializer
get :render_json_nil_with_custom_serializer
assert_equal 'null', @response.body
assert_equal "{\"dummy_custom\":null}", @response.body
end
def test_render_json