diff options
author | Yuji Yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-23 08:22:06 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 08:22:06 +0900 |
commit | d6338ad623bd1a8b18e61c222fbd2a9e05e2e25d (patch) | |
tree | 70d2b22a068ad989ecd8c836d1a27e8c8f88b615 /activerecord | |
parent | 365033750236bc344b338f0e1f96d03ba7f355c7 (diff) | |
parent | 2cc5ccedb1cabd818ece3d6736b412de086a16c1 (diff) | |
download | rails-d6338ad623bd1a8b18e61c222fbd2a9e05e2e25d.tar.gz rails-d6338ad623bd1a8b18e61c222fbd2a9e05e2e25d.tar.bz2 rails-d6338ad623bd1a8b18e61c222fbd2a9e05e2e25d.zip |
Merge pull request #31194 from yahonda/attributes_before_type_cast_on_boolean_with_jruby
No difference between JRuby and CRuby at test_read_attributes_before_…
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 2f42684212..c48f7d3518 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -200,12 +200,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase if current_adapter?(:Mysql2Adapter) test "read attributes_before_type_cast on a boolean" do bool = Boolean.create!("value" => false) - if RUBY_PLATFORM.include?("java") - # JRuby will return the value before typecast as string. - assert_equal "0", bool.reload.attributes_before_type_cast["value"] - else - assert_equal 0, bool.reload.attributes_before_type_cast["value"] - end + assert_equal 0, bool.reload.attributes_before_type_cast["value"] end end |