aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2017-11-23 08:22:06 +0900
committerGitHub <noreply@github.com>2017-11-23 08:22:06 +0900
commitd6338ad623bd1a8b18e61c222fbd2a9e05e2e25d (patch)
tree70d2b22a068ad989ecd8c836d1a27e8c8f88b615 /activerecord
parent365033750236bc344b338f0e1f96d03ba7f355c7 (diff)
parent2cc5ccedb1cabd818ece3d6736b412de086a16c1 (diff)
downloadrails-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.rb7
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