diff options
author | Alberto Perdomo <alberto.perdomo@aentos.es> | 2011-06-04 14:26:40 +0100 |
---|---|---|
committer | Alberto Perdomo <alberto.perdomo@aentos.es> | 2011-06-04 14:26:40 +0100 |
commit | 2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d (patch) | |
tree | 275bb1674fa33b4796c4f16838211ca6f79f69d3 /railties/guides | |
parent | 3035f72d17bafc4c195f582d26cba34d1068d142 (diff) | |
download | rails-2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d.tar.gz rails-2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d.tar.bz2 rails-2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d.zip |
Fixed order of parameters in assert_equal call examples, first expected, then actual object.
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/testing.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile index 7a93c3a1e6..db9c7545c8 100644 --- a/railties/guides/source/testing.textile +++ b/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 |