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/models | |
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/models')
-rw-r--r-- | activerecord/test/models/company.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index 5c95b21428..f8e259fdfe 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -104,7 +104,7 @@ class Firm < Company end class DependentFirm < Company - has_one :account, :foreign_key => "firm_id", :dependent => :nullify + has_one :account, :foreign_key => "firm_id", :dependent => :nullify, :order => "accounts.id" has_many :companies, :foreign_key => 'client_of', :dependent => :nullify end |