Permalink
Browse files

Fixed order of parameters in assert_equal call examples, first expect…

…ed, then actual object.
  • Loading branch information...
1 parent 3035f72 commit 2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d Alberto Perdomo committed Jun 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/testing.textile
@@ -929,8 +929,8 @@ class UserControllerTest < ActionController::TestCase
end
invite_email = ActionMailer::Base.deliveries.first
- assert_equal invite_email.subject, "You have been invited by me@example.com"
- assert_equal invite_email.to[0], 'friend@example.com'
+ assert_equal "You have been invited by me@example.com", invite_email.subject
+ assert_equal 'friend@example.com', invite_email.to[0]
assert_match /Hi friend@example.com/, invite_email.body
end
end

0 comments on commit 2eac4e2

Please sign in to comment.