diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-10-02 08:21:36 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-10-02 08:21:36 -0400 |
commit | b15b72233ca8eb565f5a7f4585d891ab99ea06fb (patch) | |
tree | 653ceb0ed3d4805e9b29a5aca9d390e53dc448a0 /activerecord/test | |
parent | 1a693c79c32cba070256fdb7bd1990c3d07d554f (diff) | |
download | rails-b15b72233ca8eb565f5a7f4585d891ab99ea06fb.tar.gz rails-b15b72233ca8eb565f5a7f4585d891ab99ea06fb.tar.bz2 rails-b15b72233ca8eb565f5a7f4585d891ab99ea06fb.zip |
💣
I misread this test in
https://github.com/rails/rails/commit/1a693c79c32cba070256fdb7bd1990c3d07d554f
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 9a0f0f8ada..52d197718e 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -177,7 +177,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase if current_adapter?(:MysqlAdapter, :Mysql2Adapter) def test_read_attributes_before_type_cast_on_boolean - bool = Boolean.new({ "value" => false }) + bool = Boolean.create!({ "value" => false }) if RUBY_PLATFORM =~ /java/ # JRuby will return the value before typecast as string assert_equal "0", bool.reload.attributes_before_type_cast["value"] |