aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-05-29 04:22:49 +0000
committerRick Olson <technoweenie@gmail.com>2006-05-29 04:22:49 +0000
commitcc88679c0c20d05f0fef2b9f8e38547ed8facbc4 (patch)
treeec2d22bfd83c754f2d5513b5afcf3ab12d8be481 /activerecord
parent06075a9eb5ddf255ed561bc4cdddef214d7c63aa (diff)
downloadrails-cc88679c0c20d05f0fef2b9f8e38547ed8facbc4.tar.gz
rails-cc88679c0c20d05f0fef2b9f8e38547ed8facbc4.tar.bz2
rails-cc88679c0c20d05f0fef2b9f8e38547ed8facbc4.zip
band-aid for oracle
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/test/associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index c7092bb1f9..4c8d169566 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -1354,7 +1354,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
devel.save
assert !proj.new_record?
assert_equal devel.projects.last, proj
- assert_equal Developer.find(1).projects.last, proj # prove join table is updated
+ assert_equal Developer.find(1).projects.sort_by(&:id).last, proj # prove join table is updated
end
def test_build_by_new_record
@@ -1375,7 +1375,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
proj = devel.projects.create("name" => "Projekt")
assert_equal devel.projects.last, proj
assert !proj.new_record?
- assert_equal Developer.find(1).projects.last, proj # prove join table is updated
+ assert_equal Developer.find(1).projects.sort_by(&:id).last, proj # prove join table is updated
end
def test_create_by_new_record