aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorRobin Fisher <robinjfisher@gmail.com>2019-04-29 21:37:56 +0100
committerGitHub <noreply@github.com>2019-04-29 21:37:56 +0100
commit50fe4c3c2eceb90cb1b6a081c9274151259351dc (patch)
tree422079b4eba0e6c4d8584f5bebb50bfc5ad745b2 /guides/source/testing.md
parent302d739855306f9061f1f2357844cb8d76f20ae9 (diff)
downloadrails-50fe4c3c2eceb90cb1b6a081c9274151259351dc.tar.gz
rails-50fe4c3c2eceb90cb1b6a081c9274151259351dc.tar.bz2
rails-50fe4c3c2eceb90cb1b6a081c9274151259351dc.zip
Fix incorrect url in guide [ci skip]
The example functional test lists the 'create' route as article_url rather than articles_url
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 26448958ea..18eecf49fa 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -1212,7 +1212,7 @@ Let's start by adding this assertion to our `test_should_create_article` test:
```ruby
test "should create article" do
assert_difference('Article.count') do
- post article_url, params: { article: { title: 'Some title' } }
+ post articles_url, params: { article: { title: 'Some title' } }
end
assert_redirected_to article_path(Article.last)