diff options
author | Robin Fisher <robinjfisher@gmail.com> | 2019-04-29 21:37:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 21:37:56 +0100 |
commit | 50fe4c3c2eceb90cb1b6a081c9274151259351dc (patch) | |
tree | 422079b4eba0e6c4d8584f5bebb50bfc5ad745b2 | |
parent | 302d739855306f9061f1f2357844cb8d76f20ae9 (diff) | |
download | rails-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
-rw-r--r-- | guides/source/testing.md | 2 |
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) |