diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-03-22 11:08:04 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-03-22 22:41:10 -0300 |
commit | b332891b2ab4188e9d39737f4d214812afa3ce2c (patch) | |
tree | 72974490c032f9a753f3fc41d335a049c8abbc05 /activerecord/test/cases/nested_attributes_test.rb | |
parent | b714140f4df50d102e70b0151bbb3a09e470d61a (diff) | |
download | rails-b332891b2ab4188e9d39737f4d214812afa3ce2c.tar.gz rails-b332891b2ab4188e9d39737f4d214812afa3ce2c.tar.bz2 rails-b332891b2ab4188e9d39737f4d214812afa3ce2c.zip |
Add order to tests that rely on db ordering, to fix failing tests on pg
Also skip persistente tests related to UPDATE + ORDER BY for postgresql
PostgreSQL does not support updates with order by, and these tests are
failing randomly depending on the fixture loading order now.
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index 15c45ca60e..817898f190 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -876,7 +876,7 @@ class TestNestedAttributesWithNonStandardPrimaryKeys < ActiveRecord::TestCase def test_should_update_existing_records_with_non_standard_primary_key @owner.update_attributes(@params) - assert_equal ['Foo', 'Bar'], @owner.pets.map(&:name) + assert_equal %w(Bar Foo), @owner.pets.map(&:name).sort end def test_attr_accessor_of_child_should_be_value_provided_during_update_attributes |