Created
March 24, 2011 21:06
-
-
Save nragaz/885887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb | |
index 276e4be..fd85fb7 100644 | |
--- a/activerecord/test/cases/attribute_methods_test.rb | |
+++ b/activerecord/test/cases/attribute_methods_test.rb | |
@@ -130,23 +130,6 @@ class AttributeMethodsTest < ActiveRecord::TestCase | |
assert_equal ActiveSupport::TimeZone["Pacific Time (US & Canada)"], record.written_on.time_zone | |
end | |
end | |
- | |
- def test_read_attributes_after_type_cast_on_datetime | |
- in_time_zone "Pacific Time (US & Canada)" do | |
- record = @target.new | |
- | |
- record.written_on = "2011-03-24" | |
- assert_equal "2011-03-24", record.written_on_before_type_cast | |
- assert_equal Time.zone.parse("2011-03-24"), record.written_on | |
- assert_equal ActiveSupport::TimeZone["Pacific Time (US & Canada)"], | |
- record.written_on.time_zone | |
- | |
- record.save | |
- record.reload | |
- | |
- assert_equal Time.zone.parse("2011-03-24"), record.written_on | |
- end | |
- end | |
def test_hash_content | |
topic = Topic.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment