aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-06-21 18:50:47 -0300
committerGitHub <noreply@github.com>2016-06-21 18:50:47 -0300
commit13a1110079be89b1875f44de80bec3735d243ab3 (patch)
treedc8e193594db52ee237ae4714df33f69828bd5f2 /guides
parent9d441579247b28979539d117b730548afa12fefb (diff)
parent59f56c3a6915e9c7bf38640f16c33aead467a2bf (diff)
downloadrails-13a1110079be89b1875f44de80bec3735d243ab3.tar.gz
rails-13a1110079be89b1875f44de80bec3735d243ab3.tar.bz2
rails-13a1110079be89b1875f44de80bec3735d243ab3.zip
Merge pull request #25464 from prathamesh-sonpatki/fix-http-request
update_url is not `get` most of the times [ci skip]
Diffstat (limited to 'guides')
-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 924a8a09f5..d4a826cee5 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -722,7 +722,7 @@ get :show, params: { id: 12 }, headers: { "HTTP_REFERER" => "http://example.com/
Another example: Calling the `:update` action, passing an `id` of 12 as the `params` as an Ajax request.
```ruby
-get update_url, params: { id: 12 }, xhr: true
+patch update_url, params: { id: 12 }, xhr: true
```
NOTE: If you try running `test_should_create_article` test from `articles_controller_test.rb` it will fail on account of the newly added model level validation and rightly so.