Skip to content

Commit

Permalink
Merge pull request rails#6047 from carlosantoniodasilva/changelog-jso…
Browse files Browse the repository at this point in the history
…np-mimetype

Add changelog entry for jsonp mimetype change, fix failing test
  • Loading branch information
josevalim committed Apr 29, 2012
2 parents 6bea191 + 65df4c5 commit 8c2cf1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion actionpack/test/controller/render_json_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8c2cf1a

Please sign in to comment.