aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2019-06-01 16:51:56 +0900
committerGitHub <noreply@github.com>2019-06-01 16:51:56 +0900
commit2a015f6c0be0593a624b0c800e5335319ac4c660 (patch)
tree76458f7e7c743bdee8d979a2af83494c21f636af /guides/source/testing.md
parentd3e87efedb8cf9d072584bc8703841a80c07648f (diff)
parentea5f509643d6d9c468a9b26f6c45bd4e40fd67cf (diff)
downloadrails-2a015f6c0be0593a624b0c800e5335319ac4c660.tar.gz
rails-2a015f6c0be0593a624b0c800e5335319ac4c660.tar.bz2
rails-2a015f6c0be0593a624b0c800e5335319ac4c660.zip
Merge pull request #36034 from y-yagi/fixes_35709
Change `ActionDispatch::Response#content_type` returning Content-Type header as it is
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 9540bb2af5..41bc54b924 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -1144,7 +1144,7 @@ test "ajax request" do
get article_url(article), xhr: true
assert_equal 'hello world', @response.body
- assert_equal "text/javascript", @response.content_type
+ assert_equal "text/javascript", @response.media_type
end
```