spec/date_spec.rb in partial-date-1.1.6 vs spec/date_spec.rb in partial-date-1.1.7
- old
+ new
@@ -81,13 +81,9 @@
end
end
describe "Year" do
- it "should raise an error if year is set to nil" do
- expect {date.year = nil}.to raise_error(PartialDate::YearError)
- end
-
it "should raise an error if year is set to an invalid string" do
expect {date.year = "ABCD" }.to raise_error(PartialDate::YearError, "Year must be a valid string or integer from -1048576 to 1048576")
end
it "should raise an error if year is set to a value greater than 1048576" do