提交 8c2cf1ad 编写于 作者: J José Valim

Merge pull request #6047 from carlosantoniodasilva/changelog-jsonp-mimetype

Add changelog entry for jsonp mimetype change, fix failing test
## Rails 4.0.0 (unreleased) ##
* JSONP now uses mimetype application/javascript instead of application/json *omjokine*
* Allow to lazy load `default_form_builder` by passing a `String` instead of a constant. *Piotr Sarnacki*
* Session arguments passed to `process` calls in functional tests are now merged into
......
......@@ -102,7 +102,7 @@ def test_render_json_with_status
def test_render_json_with_callback
get :render_json_hello_world_with_callback
assert_equal 'alert({"hello":"world"})', @response.body
assert_equal 'application/javascript', @response.content_type
assert_equal 'text/javascript', @response.content_type
end
def test_render_json_with_custom_content_type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册