Permalink
Browse files

Improve some variable naming for the integration test in the testing …

…guide. [ci skip]
  • Loading branch information...
1 parent 018cc38 commit f31fdce7a59861d15dc3ed676672192f9ae52e06 @derikson derikson committed Apr 6, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 guides/source/testing.md
View
@@ -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

0 comments on commit f31fdce

Please sign in to comment.