summaryrefslogtreecommitdiff
path: root/test/test_time.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-14 22:03:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-14 22:03:28 +0000
commit1b4c1f715e5abcf68ea680dbed3b36007b9aa761 (patch)
tree04b06c7b20d487695b36d862f69135a7849d332f /test/test_time.rb
parente722ad99d5b0e6a9bb0249ff3d9c8cce28d3204e (diff)
* lib/time.rb (Time.parse): raise ArgumentError if Date._parse don't
extract date information. [ruby-core:20912] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 0d53409..844dc62 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