aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorDan Erikson <derikson3@gmail.com>2013-04-06 00:06:56 -0600
committerDan Erikson <derikson3@gmail.com>2013-04-06 00:06:56 -0600
commitf31fdce7a59861d15dc3ed676672192f9ae52e06 (patch)
treedba7bf48adc9281b76773f97270c6a0978671a7d /guides/source/testing.md
parent018cc389d13aba3f4f6072b2e529e05bf380ee0a (diff)
downloadrails-f31fdce7a59861d15dc3ed676672192f9ae52e06.tar.gz
rails-f31fdce7a59861d15dc3ed676672192f9ae52e06.tar.bz2
rails-f31fdce7a59861d15dc3ed676672192f9ae52e06.zip
Improve some variable naming for the integration test in the testing guide. [ci skip]
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 7aeb26adb3..95b342efd4 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -714,17 +714,17 @@ class UserFlowsTest < ActionDispatch::IntegrationTest
test "login and browse site" do
- # User avs logs in
- avs = login(:david)
+ # User david logs in
+ david = login(:david)
# User guest logs in
guest = login(:guest)
# Both are now available in different sessions
- assert_equal 'Welcome david!', avs.flash[:notice]
+ assert_equal 'Welcome david!', david.flash[:notice]
assert_equal 'Welcome guest!', guest.flash[:notice]
- # User avs can browse site
- avs.browses_site
+ # User david can browse site
+ david.browses_site
# User guest can browse site as well
guest.browses_site