Permalink
Browse files

Removed unused test for DateTime.local_offset

see discussion here #11274
  • Loading branch information...
1 parent b785e92 commit bb9244e67f0c89559a1114106653526fc480ac5c @arunagw arunagw committed Jul 3, 2013
Showing with 0 additions and 20 deletions.
  1. +0 −20 activerecord/test/cases/migration/column_attributes_test.rb
@@ -168,26 +168,6 @@ def test_native_types
assert_equal Date, bob.favorite_day.class
end
- # Oracle adapter stores Time or DateTime with timezone value already in _before_type_cast column
- # therefore no timezone change is done afterwards when default timezone is changed
- unless current_adapter?(:OracleAdapter)
- # Test DateTime column and defaults, including timezone.
- # FIXME: moment of truth may be Time on 64-bit platforms.
- if bob.moment_of_truth.is_a?(DateTime)
-
- with_env_tz 'US/Eastern' do
- bob.reload
- assert_equal DateTime.local_offset, bob.moment_of_truth.offset
- assert_not_equal 0, bob.moment_of_truth.offset
- assert_not_equal "Z", bob.moment_of_truth.zone
- # US/Eastern is -5 hours from GMT
- assert_equal Rational(-5, 24), bob.moment_of_truth.offset
- assert_match(/\A-05:00\Z/, bob.moment_of_truth.zone)
- assert_equal DateTime::ITALY, bob.moment_of_truth.start
- end
- end
- end
-
assert_instance_of TrueClass, bob.male?
assert_kind_of BigDecimal, bob.wealth
end

0 comments on commit bb9244e

Please sign in to comment.