diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-07-20 21:25:31 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-20 21:25:31 +0200 |
commit | 5bec5848b22527ee77c007565f7eea336e5c864f (patch) | |
tree | ae85587a697c242439dcfac6381de4345bec43d3 /activesupport/test | |
parent | 006cbb8fde3f20a684eabcfd11c53ae762cf8435 (diff) | |
download | rails-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/test')
-rw-r--r-- | activesupport/test/core_ext/time_ext_test.rb | 2 |
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 |