File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -214,14 +214,16 @@ def test_render_json_object_without_serializer
214214 get :render_json_object_without_serializer
215215
216216 assert_equal 'application/json' , @response . content_type
217- assert_equal ( { error : 'Result is Invalid' } ) . to_json , @response . body
217+ expected_body = { error : 'Result is Invalid' }
218+ assert_equal expected_body . to_json , @response . body
218219 end
219220
220221 def test_render_json_array_object_without_serializer
221222 get :render_json_array_object_without_serializer
222223
223224 assert_equal 'application/json' , @response . content_type
224- assert_equal ( [ { error : 'Result is Invalid' } ] ) . to_json , @response . body
225+ expected_body = [ { error : 'Result is Invalid' } ]
226+ assert_equal expected_body . to_json , @response . body
225227 end
226228
227229 def test_render_array_using_implicit_serializer
You can’t perform that action at this time.
0 commit comments