aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-07-20 21:25:31 +0200
committerMichael Koziarski <michael@koziarski.com>2008-07-20 21:25:31 +0200
commit5bec5848b22527ee77c007565f7eea336e5c864f (patch)
treeae85587a697c242439dcfac6381de4345bec43d3 /activesupport
parent006cbb8fde3f20a684eabcfd11c53ae762cf8435 (diff)
downloadrails-5bec5848b22527ee77c007565f7eea336e5c864f.tar.gz
rails-5bec5848b22527ee77c007565f7eea336e5c864f.tar.bz2
rails-5bec5848b22527ee77c007565f7eea336e5c864f.zip
If it doesn't overflow, it won't have a .start method. So don't run the second assertion either
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/time_ext_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb
index 14309f4e2d..8740497b3d 100644
--- a/activesupport/test/core_ext/time_ext_test.rb
+++ b/activesupport/test/core_ext/time_ext_test.rb
@@ -533,8 +533,8 @@ class TimeExtCalculationsTest < Test::Unit::TestCase
unless expected_to_overflow.is_a?(Time)
assert_equal Time.time_with_datetime_fallback(:utc, 2039, 2, 21, 17, 44, 30, 1),
DateTime.civil(2039, 2, 21, 17, 44, 30, 0, 0)
+ assert_equal ::Date::ITALY, Time.time_with_datetime_fallback(:utc, 2039, 2, 21, 17, 44, 30, 1).start # use Ruby's default start value
end
- assert_equal ::Date::ITALY, Time.time_with_datetime_fallback(:utc, 2039, 2, 21, 17, 44, 30, 1).start # use Ruby's default start value
end
def test_utc_time