diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-03-23 00:14:42 +0200 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-08-06 23:40:59 +0300 |
commit | 42fd2a3b162e8f93e9c39b07253561bde3c00e35 (patch) | |
tree | 18c0ce723a5b525904b0d3eea88a07fffc5ca05e /activerecord/test/cases | |
parent | c3e1ef0b4051c515fa2e3f49ea47309c79a89aee (diff) | |
download | rails-42fd2a3b162e8f93e9c39b07253561bde3c00e35.tar.gz rails-42fd2a3b162e8f93e9c39b07253561bde3c00e35.tar.bz2 rails-42fd2a3b162e8f93e9c39b07253561bde3c00e35.zip |
added :order to find :all as otherwise Oracle tests were failing
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/inheritance_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/inheritance_test.rb b/activerecord/test/cases/inheritance_test.rb index 167d3abad9..5cd11e9799 100644 --- a/activerecord/test/cases/inheritance_test.rb +++ b/activerecord/test/cases/inheritance_test.rb @@ -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 |