diff --git a/test/serialization_test.rb b/test/serialization_test.rb index 2bcc1c9a..f2c1faea 100644 --- a/test/serialization_test.rb +++ b/test/serialization_test.rb @@ -214,7 +214,7 @@ class RenderJsonTest < ActionController::TestCase def test_render_json_with_callback get :render_json_hello_world_with_callback assert_equal 'alert({"hello":"world"})', @response.body - assert_equal 'application/json', @response.content_type + assert_match %r(application/json|text/javascript), @response.content_type end def test_render_json_with_custom_content_type