diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-31 23:39:29 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-31 23:39:29 -0200 |
commit | f532cd10401cc7b61cae41c6f2d547c2cf790d9c (patch) | |
tree | 30d28becb7e1686353f3c0d65b2c27a0e6a177a7 /activerecord/test/models/company.rb | |
parent | e1de54079b2237c4ecbf7511ab5411e5517c272b (diff) | |
download | rails-f532cd10401cc7b61cae41c6f2d547c2cf790d9c.tar.gz rails-f532cd10401cc7b61cae41c6f2d547c2cf790d9c.tar.bz2 rails-f532cd10401cc7b61cae41c6f2d547c2cf790d9c.zip |
Fix broken tests added by 85c724d59
Diffstat (limited to 'activerecord/test/models/company.rb')
-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 db82f471d2..5c95b21428 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -45,7 +45,7 @@ class Firm < Company has_many :unsorted_clients_with_symbol, :class_name => :Client has_many :clients_sorted_desc, :class_name => "Client", :order => "id DESC" has_many :clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id" - has_many :clients_ordered_by_rating, :order => "rating", :class_name => "Client" + has_many :clients_ordered_by_name, :order => "name", :class_name => "Client" has_many :unvalidated_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :validate => false has_many :dependent_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :destroy has_many :exclusively_dependent_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all |