Skip to content

Commit

Permalink
Fix incorrect url in guide [ci skip]
Browse files Browse the repository at this point in the history
The example functional test lists the 'create' route as article_url rather than articles_url
  • Loading branch information
robinjfisher committed Apr 29, 2019
1 parent 302d739 commit 50fe4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/testing.md
Expand Up @@ -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)
Expand Down

0 comments on commit 50fe4c3

Please sign in to comment.