Hi,

The applied patch changes two tests in activerecord/test/base_test.rb to 
not be dependent on hash ordering. The patch is against stable.

Cheers
-- 
  Ola Bini (http://ola-bini.blogspot.com)
  JvYAML, RbYAML, JRuby and Jatha contributor
  System Developer, Karolinska Institutet (http://www.ki.se)
  OLogix Consulting (http://www.ologix.com)

  "Yields falsehood when quined" yields falsehood when quined.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Index: activerecord/test/base_test.rb
===================================================================
--- activerecord/test/base_test.rb      (revision 6488)
+++ activerecord/test/base_test.rb      (working copy)
@@ -11,6 +11,7 @@
 require 'fixtures/subscriber'
 require 'fixtures/keyboard'
 require 'fixtures/post'
+require 'set'
 
 class Category < ActiveRecord::Base; end
 class Smarts < ActiveRecord::Base; end
@@ -1530,19 +1531,19 @@
   
   def test_except_attributes
     assert_equal(
-      %w( author_name type id approved replies_count bonus_time written_on 
content author_email_address parent_id last_read), 
-      topics(:first).attributes(:except => :title).keys
+      Set.new(%w( author_name type id approved replies_count bonus_time 
written_on content author_email_address parent_id last_read)), 
+      Set.new(topics(:first).attributes(:except => :title).keys)
     )
 
     assert_equal(
-      %w( replies_count bonus_time written_on content author_email_address 
parent_id last_read), 
-      topics(:first).attributes(:except => [ :title, :id, :type, :approved, 
:author_name ]).keys
+      Set.new(%w( replies_count bonus_time written_on content 
author_email_address parent_id last_read)), 
+      Set.new(topics(:first).attributes(:except => [ :title, :id, :type, 
:approved, :author_name ]).keys)
     )
   end
   
   def test_include_attributes
     assert_equal(%w( title ), topics(:first).attributes(:only => :title).keys)
-    assert_equal(%w( title author_name type id approved ), 
topics(:first).attributes(:only => [ :title, :id, :type, :approved, 
:author_name ]).keys)
+    assert_equal(Set.new(%w( title author_name type id approved )), 
Set.new(topics(:first).attributes(:only => [ :title, :id, :type, :approved, 
:author_name ]).keys))
   end
   
   def test_type_name_with_module_should_handle_beginning

Reply via email to