Skip to content

Commit

Permalink
Merge pull request #25464 from prathamesh-sonpatki/fix-http-request
Browse files Browse the repository at this point in the history
update_url is not `get` most of the times [ci skip]
  • Loading branch information
rafaelfranca committed Jun 21, 2016
1 parent bf60c04 commit f361b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/testing.md
Expand Up @@ -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.
Expand Down

0 comments on commit f361b47

Please sign in to comment.