Skip to content

Commit

Permalink
Make a test not fail if it happens to be within the hour after midnight.
Browse files Browse the repository at this point in the history
  • Loading branch information
treed committed Aug 12, 2009
1 parent 264f804 commit 677cc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/time.t
Expand Up @@ -9,7 +9,7 @@ is Time.new.to_s.length, 25, '.to_s on Time'
# that might work, but right now the to_s is 100% correct
t = Time.new
pass '.sec on Time' if t.sec
pass '.hour on Time' if t.hour
pass '.hour on Time' if t.hour >= 0 and t.hour < 24
pass '.mday on Time' if t.mday
pass '.day on Time' if t.day
pass '.month on Time' if t.month
Expand Down

0 comments on commit 677cc5d

Please sign in to comment.