mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fix assertion for Ruby 1.8.7
This commit is contained in:
@@ -214,7 +214,8 @@ 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_match %r(application/json|text/javascript), @response.content_type
|
||||
# For JSONP, Rails 3 uses application/json, but Rails 4 uses text/javascript
|
||||
assert_match %r(application/json|text/javascript), @response.content_type.to_s
|
||||
end
|
||||
|
||||
def test_render_json_with_custom_content_type
|
||||
|
||||
Reference in New Issue
Block a user