Skip to content
Browse files

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

…ed, then actual object.
  • Loading branch information...
1 parent 9726ed8 commit f9087ee29ca556c2a700306265fd9288a06dd481 Alberto Perdomo committed with fxn Jun 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/testing.textile
View
4 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 f9087ee

Please sign in to comment.
Something went wrong with that request. Please try again.