Skip to content
Browse files

Add Time Tests

  • Loading branch information...
1 parent e6fb7d9 commit fffa89014e5956741eae77c09a7606ac22463576 @bovi bovi committed Sep 9, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/t/time.rb
View
10 test/t/time.rb
@@ -187,5 +187,15 @@
assert('Time#zone', '15.2.19.7.33') do
Time.at(1300000000.0).utc.zone == 'UTC'
end
+
+ # Not ISO specified
+
+ assert('Time#to_s') do
+ Time.at(1300000000.0).utc.to_s == "Sun Mar 13 07:06:40 UTC 2011"
+ end
+
+ assert('Time#inspect') do
+ Time.at(1300000000.0).utc.inspect == "Sun Mar 13 07:06:40 UTC 2011"
+ end
end

0 comments on commit fffa890

Please sign in to comment.
Something went wrong with that request. Please try again.