From 2eac4e2e2ff3a740c71268bfb78ebf0b72efc48d Mon Sep 17 00:00:00 2001
From: Alberto Perdomo <alberto.perdomo@aentos.es>
Date: Sat, 4 Jun 2011 14:26:40 +0100
Subject: Fixed order of parameters in assert_equal call examples, first
 expected, then actual object.

---
 railties/guides/source/testing.textile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'railties/guides/source/testing.textile')

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
-- 
cgit v1.2.3

