Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert to previous mysql-specific assertion, and only run the test on…

… mysql.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 63173630db5ccf25695d8b1eae7fbc0b669b19e5 1 parent aa088e0
@NZKoz NZKoz authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 activerecord/test/cases/base_test.rb
View
8 activerecord/test/cases/base_test.rb
@@ -131,9 +131,11 @@ def test_read_attributes_before_type_cast
assert_equal category_attrs , category.attributes_before_type_cast
end
- def test_read_attributes_before_type_cast_on_boolean
- bool = Booleantest.new({ "value" => 0 })
- assert_equal 0, bool.attributes_before_type_cast["value"]
+ if current_adapter?(:MysqlAdapter)
+ def test_read_attributes_before_type_cast_on_boolean
+ bool = Booleantest.create({ "value" => false })
+ assert_equal 0, bool.attributes_before_type_cast["value"]
+ end
end
def test_read_attributes_before_type_cast_on_datetime
Please sign in to comment.
Something went wrong with that request. Please try again.