Skip to content
Browse files

Made test_update_attributes_after_push_without_duplicate_join_table_r…

…ows pass with Oracle Adapter.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6865b66 commit b762e0141c9f93b844ace8a2734923cc1f0b75bf @csshsh csshsh committed Nov 24, 2005
Showing with 3 additions and 3 deletions.
  1. +1 −1 activerecord/CHANGELOG
  2. +2 −2 activerecord/test/associations_test.rb
View
2 activerecord/CHANGELOG
@@ -6,7 +6,7 @@
* Reloading a model doesn't lose track of its connection. #2996 [junk@miriamtech.com, Jeremy Kemper]
-* Fixed bug where using update_attribute after pushing a record to a habtm association of the object caused duplicate rows in the join table. #2888 [colman@rominato.com, Florian Weber]
+* Fixed bug where using update_attribute after pushing a record to a habtm association of the object caused duplicate rows in the join table. #2888 [colman@rominato.com, Florian Weber, Michael Schoen]
* Add tasks to create, drop and rebuild the MySQL and PostgreSQL test databases. [Marcel Molina Jr.]
View
4 activerecord/test/associations_test.rb
@@ -1388,7 +1388,7 @@ def test_update_attributes_after_push_without_duplicate_join_table_rows
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

0 comments on commit b762e01

Please sign in to comment.
Something went wrong with that request. Please try again.