aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_time.rb')
-rw-r--r--test/test_time.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_time.rb b/test/test_time.rb
index 0d53409e9b..844dc62314 100644
--- a/test/test_time.rb
+++ b/test/test_time.rb
@@ -176,6 +176,7 @@ class TestTimeExtention < Test::Unit::TestCase # :nodoc:
#assert_equal(Time.local(2001,11,1), Time.parse("Nov", now))
assert_equal(Time.local( 2001,11,29,10,22),
Time.parse( "10:22", now))
+ assert_raise(ArgumentError) { Time.parse("foo", now) }
end
def test_invalid