diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-04-29 11:55:35 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-04-29 12:01:05 -0300 |
commit | 65df4c53c2f6055618cd23c8a399074a4c5bffe2 (patch) | |
tree | 2637d7072d1bac38745d46bd7ed0ee0ebb5e6568 | |
parent | 6bea191a750db805aefa82339074fe61637e8fb1 (diff) | |
download | rails-65df4c53c2f6055618cd23c8a399074a4c5bffe2.tar.gz rails-65df4c53c2f6055618cd23c8a399074a4c5bffe2.tar.bz2 rails-65df4c53c2f6055618cd23c8a399074a4c5bffe2.zip |
Add changelog entry for jsonp mimetype change, fix failing test
Fix failing test: Mime::JS generates "text/javascript"
-rw-r--r-- | actionpack/CHANGELOG.md | 2 | ||||
-rw-r--r-- | actionpack/test/controller/render_json_test.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index e827f935c3..6940bd45a0 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,7 @@ ## 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 diff --git a/actionpack/test/controller/render_json_test.rb b/actionpack/test/controller/render_json_test.rb index 3be70ab84f..7c0a6bd67e 100644 --- a/actionpack/test/controller/render_json_test.rb +++ b/actionpack/test/controller/render_json_test.rb @@ -102,7 +102,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/javascript', @response.content_type + assert_equal 'text/javascript', @response.content_type end def test_render_json_with_custom_content_type |