mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Temporary ignored the failing specs for Date"
This reverts commit 17e64cca6b
.
The specs should work now.
This commit is contained in:
parent
a87c56f820
commit
8a816fbe7b
1 changed files with 5 additions and 9 deletions
|
@ -17,11 +17,9 @@ describe "Date.iso8601" do
|
||||||
d.should == Date.civil(-4712, 1, 1)
|
d.should == Date.civil(-4712, 1, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_version_is ""..."3.1" do
|
it "parses a Symbol into a Date object" do
|
||||||
it "parses a Symbol into a Date object" do
|
d = Date.iso8601(:'2015-10-15')
|
||||||
d = Date.iso8601(:'2015-10-15')
|
d.should == Date.civil(2015, 10, 15)
|
||||||
d.should == Date.civil(2015, 10, 15)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "parses a StringSubclass into a Date object" do
|
it "parses a StringSubclass into a Date object" do
|
||||||
|
@ -29,10 +27,8 @@ describe "Date.iso8601" do
|
||||||
d.should == Date.civil(-4712, 1, 1)
|
d.should == Date.civil(-4712, 1, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_version_is ""..."3.1" do
|
it "raises an ArgumentError when passed a Symbol without a valid Date" do
|
||||||
it "raises an ArgumentError when passed a Symbol without a valid Date" do
|
-> { Date.iso8601(:test) }.should raise_error(ArgumentError)
|
||||||
-> { Date.iso8601(:test) }.should raise_error(ArgumentError)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises a TypeError when passed an Object" do
|
it "raises a TypeError when passed an Object" do
|
||||||
|
|
Loading…
Add table
Reference in a new issue