Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ed, then actual object.
  • Loading branch information...
commit 2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d 1 parent 3035f72
Alberto Perdomo authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.