band-aid for oracle

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Rick Olson 2006-05-29 04:22:49 +00:00
parent 06075a9eb5
commit cc88679c0c
1 changed files with 2 additions and 2 deletions

View File

@ -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