tightened up specs for attribute methods

This commit is contained in:
Adam Meehan
2008-05-21 10:02:13 +10:00
parent 1269d794d0
commit 7fadc2c164
2 changed files with 12 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ module ValidatesTimeliness
# checks if date is valid which enforces number of days in a month unlike Time
Date.new(*time_array[0..2])
# checks if time is valid and return object
# checks if time part is valid and returns object
Time.mktime(*time_array)
rescue
nil