[Ruby-activeldap-commit] [ruby-activeldap commit] r732 - trunk/test

codesite-noreply at google.com codesite-noreply at google.com
Fri Jun 6 08:56:19 EDT 2008


Author: koutou
Date: Fri Jun  6 05:53:17 2008
New Revision: 732

Modified:
   trunk/test/test_validation.rb

Log:
* normalize compared values.


Modified: trunk/test/test_validation.rb
==============================================================================
--- trunk/test/test_validation.rb	(original)
+++ trunk/test/test_validation.rb	Fri Jun  6 05:53:17 2008
@@ -33,8 +33,9 @@
       assert(user.save)
 
       user = user.class.find(user.dn)
-      assert_equal([{"lang-ja" => "ユーザ"}, {"lang-en" => "User"}],
-                   user.display_name)
+      assert_equal([{"lang-ja" => "ユーザ"},
+                    {"lang-en" => "User"}].sort_by {|hash| hash.keys.first},
+                   user.display_name.sort_by {|hash| hash.keys.first})
     end
   end
 


More information about the Ruby-activeldap-commit mailing list