Ticket #9640: test-order.patch
| File test-order.patch, 1.0 kB (added by Aleksey Kondratenko, 4 months ago) |
|---|
-
a/activerecord/test/associations_test.rb
old new 21 21 fixtures :accounts, :companies, :developers, :projects, :developers_projects, 22 22 :computers 23 23 24 def test_include_with_order_works 25 assert_nothing_raised {Account.find(:first, :order => 'id', :include => :firm)} 26 assert_nothing_raised {Account.find(:first, :order => :id, :include => :firm)} 27 end 28 24 29 def test_bad_collection_keys 25 30 assert_raise(ArgumentError, 'ActiveRecord should have barked on bad collection keys') do 26 31 Class.new(ActiveRecord::Base).has_many(:wheels, :name => 'wheels')