diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-16 23:01:54 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-16 23:01:54 +0900 |
commit | 8a816fbe7bcc518518a8fd0edabcb6e4fc0d5a56 (patch) | |
tree | 205d7ed0a1950506855cc2be79da58450faf812d /spec/ruby | |
parent | a87c56f820dac90d50544ad33cc546daa9f29a9a (diff) |
Revert "Temporary ignored the failing specs for Date"
This reverts commit 17e64cca6b737060884f6fd9ab1c5055e9b49577.
The specs should work now.
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/library/date/iso8601_spec.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/ruby/library/date/iso8601_spec.rb b/spec/ruby/library/date/iso8601_spec.rb index 94a1f8f734..2c698db514 100644 --- a/spec/ruby/library/date/iso8601_spec.rb +++ b/spec/ruby/library/date/iso8601_spec.rb @@ -17,11 +17,9 @@ describe "Date.iso8601" do d.should == Date.civil(-4712, 1, 1) end - ruby_version_is ""..."3.1" do - it "parses a Symbol into a Date object" do - d = Date.iso8601(:'2015-10-15') - d.should == Date.civil(2015, 10, 15) - end + it "parses a Symbol into a Date object" do + d = Date.iso8601(:'2015-10-15') + d.should == Date.civil(2015, 10, 15) end it "parses a StringSubclass into a Date object" do @@ -29,10 +27,8 @@ describe "Date.iso8601" do d.should == Date.civil(-4712, 1, 1) end - ruby_version_is ""..."3.1" do - it "raises an ArgumentError when passed a Symbol without a valid Date" do - -> { Date.iso8601(:test) }.should raise_error(ArgumentError) - end + it "raises an ArgumentError when passed a Symbol without a valid Date" do + -> { Date.iso8601(:test) }.should raise_error(ArgumentError) end it "raises a TypeError when passed an Object" do |