mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
serialization test: respect root settings when root object is nil
This commit is contained in:
parent
9f93f34a34
commit
58a063eff0
@ -227,7 +227,7 @@ class RenderJsonTest < ActionController::TestCase
|
|||||||
|
|
||||||
def test_render_json_nil_with_custom_serializer
|
def test_render_json_nil_with_custom_serializer
|
||||||
get :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
|
end
|
||||||
|
|
||||||
def test_render_json
|
def test_render_json
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user