diff options
author | Vishnu Atrai <me@vishnuatrai.com> | 2011-06-01 00:23:14 +0530 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-06-01 18:50:26 +0100 |
commit | 230f78875999ed566cbfc54c3b824420ea082f4b (patch) | |
tree | b75a0e20577a2648112a53b5d692d35e13aacff9 /activerecord/test/cases | |
parent | 1e43bd9f3520364ba2ebc99bde047334c34cb361 (diff) | |
download | rails-230f78875999ed566cbfc54c3b824420ea082f4b.tar.gz rails-230f78875999ed566cbfc54c3b824420ea082f4b.tar.bz2 rails-230f78875999ed566cbfc54c3b824420ea082f4b.zip |
AttributeMethodTest test fix #jruby
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 54c4d4ae90..660cc0057a 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -134,7 +134,11 @@ class AttributeMethodsTest < ActiveRecord::TestCase if current_adapter?(:MysqlAdapter) def test_read_attributes_before_type_cast_on_boolean bool = Boolean.create({ "value" => false }) - assert_equal 0, bool.reload.attributes_before_type_cast["value"] + if RUBY_PLATFORM =~ /java/ + assert_equal 0, bool.reload.attributes_before_type_cast["value"] + else + assert_equal "0", bool.reload.attributes_before_type_cast["value"] + end end end |