Commit fffa8901 authored by Daniel Bovensiepen's avatar Daniel Bovensiepen

Add Time Tests

parent e6fb7d98
...@@ -187,5 +187,15 @@ if Object.const_defined?(:Time) ...@@ -187,5 +187,15 @@ if Object.const_defined?(:Time)
assert('Time#zone', '15.2.19.7.33') do assert('Time#zone', '15.2.19.7.33') do
Time.at(1300000000.0).utc.zone == 'UTC' Time.at(1300000000.0).utc.zone == 'UTC'
end 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 end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment