added :order to find :all as otherwise Oracle tests were failing

This commit is contained in:
Raimonds Simanovskis 2009-03-23 00:14:42 +02:00
parent c3e1ef0b40
commit 42fd2a3b16
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ class InheritanceTest < ActiveRecord::TestCase
def test_update_all_within_inheritance
Client.update_all "name = 'I am a client'"
assert_equal "I am a client", Client.find(:all).first.name
assert_equal "37signals", Firm.find(:all).first.name
# Order by added as otherwise Oracle tests were failing because of different order of results
assert_equal "37signals", Firm.find(:all, :order => "id").first.name
end
def test_alt_update_all_within_inheritance