aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-02-20 05:30:16 +0000
committerMichael Koziarski <michael@koziarski.com>2008-02-20 05:30:16 +0000
commit63173630db5ccf25695d8b1eae7fbc0b669b19e5 (patch)
tree6a93f55ae595dfa0403a221814b12af5e6de1fd5 /activerecord/test
parentaa088e05dc6b572f24d713534c38d52dd5896347 (diff)
downloadrails-63173630db5ccf25695d8b1eae7fbc0b669b19e5.tar.gz
rails-63173630db5ccf25695d8b1eae7fbc0b669b19e5.tar.bz2
rails-63173630db5ccf25695d8b1eae7fbc0b669b19e5.zip
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
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/cases/base_test.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 6cb120f28e..f2720130e2 100755
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -131,9 +131,11 @@ class BasicsTest < ActiveRecord::TestCase
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