diff options
author | Florian Weber <csshsh@gmail.com> | 2005-11-24 12:45:33 +0000 |
---|---|---|
committer | Florian Weber <csshsh@gmail.com> | 2005-11-24 12:45:33 +0000 |
commit | 1f951bbf9feaace53b1e1c8ef277dc4740d3591b (patch) | |
tree | 62575d662fe9df448b071180e9d03195e3f3eb84 | |
parent | 6c1a356a1a613274d2b6c1851778ff224bf1cbff (diff) | |
download | rails-1f951bbf9feaace53b1e1c8ef277dc4740d3591b.tar.gz rails-1f951bbf9feaace53b1e1c8ef277dc4740d3591b.tar.bz2 rails-1f951bbf9feaace53b1e1c8ef277dc4740d3591b.zip |
Made test_update_attributes_after_push_without_duplicate_join_table_rows pass with Oracle Adapter. #2888
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3186 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | activerecord/test/associations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index df53118040..699bc7a12f 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -1404,7 +1404,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase assert developer.save developer.projects << project developer.update_attribute("name", "Bruza") - assert_equal "1", developer.connection.select_one("SELECT count(*) FROM developers_projects WHERE - project_id = #{project.id} AND developer_id = #{developer.id}")["count(*)"] + assert_equal 1, developer.connection.select_one("SELECT count(*) FROM developers_projects WHERE + project_id = #{project.id} AND developer_id = #{developer.id}")["count(*)"].to_i end end |