aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorCelso Fernandes <fernandes@users.noreply.github.com>2017-02-21 21:42:44 -0300
committerGitHub <noreply@github.com>2017-02-21 21:42:44 -0300
commit5f1430564ff8c2e651786521e9e3278becfd326b (patch)
tree9e2417a4dd03809af0c3e2be3634569490adb024 /guides/source/testing.md
parent8de68078f4b55ed574d795cece38c2943642b95e (diff)
downloadrails-5f1430564ff8c2e651786521e9e3278becfd326b.tar.gz
rails-5f1430564ff8c2e651786521e9e3278becfd326b.tar.bz2
rails-5f1430564ff8c2e651786521e9e3278becfd326b.zip
[doc] Fix wrong class name in testing.md
As the specified command is `rails g system_test articles`, the generated class name is `ArticlesTest`, not `UsersTest`
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 2937a23a67..2a474507e6 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -712,7 +712,7 @@ Now let's open that file and write our first assertion:
```ruby
require "application_system_test_case"
-class UsersTest < ApplicationSystemTestCase
+class ArticlesTest < ApplicationSystemTestCase
test "viewing the index" do
visit articles_path
assert_selector "h1", text: "Articles"