public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/thewoolleyman/rails.git
If it doesn't overflow, it won't have a .start method.  So don't run the 
second assertion either
NZKoz (author)
Sun Jul 20 12:25:31 -0700 2008
commit  5bec5848b22527ee77c007565f7eea336e5c864f
tree    ae85587a697c242439dcfac6381de4345bec43d3
parent  006cbb8fde3f20a684eabcfd11c53ae762cf8435
...
533
534
535
 
536
537
538
539
540
...
533
534
535
536
537
 
538
539
540
0
@@ -533,8 +533,8 @@ class TimeExtCalculationsTest < Test::Unit::TestCase
0
     unless expected_to_overflow.is_a?(Time)
0
       assert_equal Time.time_with_datetime_fallback(:utc, 2039, 2, 21, 17, 44, 30, 1),
0
                    DateTime.civil(2039, 2, 21, 17, 44, 30, 0, 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
0
     end
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
0
   end
0
 
0
   def test_utc_time

Comments

    No one has commented yet.