Permalink
Browse files

Merge pull request #11274 from arunagw/deprecation-removed-build-fixed

Deprecation removed build fixed
  • Loading branch information...
2 parents 2391263 + bb9244e commit 7d384ddb2de46f584cb885c8b3944532ac3ac07c @rafaelfranca rafaelfranca committed Jul 7, 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 7d384dd

Please sign in to comment.