mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix assertion for Ruby 1.8.7
This commit is contained in:
parent
646d57c438
commit
0a5d3eb953
@ -214,7 +214,8 @@ class RenderJsonTest < ActionController::TestCase
|
|||||||
def test_render_json_with_callback
|
def test_render_json_with_callback
|
||||||
get :render_json_hello_world_with_callback
|
get :render_json_hello_world_with_callback
|
||||||
assert_equal 'alert({"hello":"world"})', @response.body
|
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
|
end
|
||||||
|
|
||||||
def test_render_json_with_custom_content_type
|
def test_render_json_with_custom_content_type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user