diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-14 15:56:33 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-14 15:56:33 +0000 |
commit | 6479a0163aa798ae379962c6b52f6410b11995cc (patch) | |
tree | 2a63962dc9a2f66cbb4804b4d2bc4680ed00ab3b /spec/rubyspec/core/time | |
parent | 938465beb05d481b424e9b06a19124c22a881ee0 (diff) |
Update to ruby/spec@a4bc1d8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec/core/time')
-rw-r--r-- | spec/rubyspec/core/time/shared/time_params.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/rubyspec/core/time/shared/time_params.rb b/spec/rubyspec/core/time/shared/time_params.rb index b60699dfb3..87b52d9f8d 100644 --- a/spec/rubyspec/core/time/shared/time_params.rb +++ b/spec/rubyspec/core/time/shared/time_params.rb @@ -24,6 +24,11 @@ describe :time_params, shared: true do Time.send(@method, 2000, 2, 3, 4, 5, 0) end + it "accepts a too big day of the month by going to the next month" do + Time.send(@method, 1999, 2, 31).should == + Time.send(@method, 1999, 3, 3) + end + it "raises a TypeError if the year is nil" do lambda { Time.send(@method, nil) }.should raise_error(TypeError) end |