spec/date_spec.rb in partial-date-1.1.7 vs spec/date_spec.rb in partial-date-1.1.8
- old
+ new
@@ -50,18 +50,18 @@
it "should return a string representation of date in the correct format" do
new_date = PartialDate::Date.new {|d| d.year = 2012; d.month = 12; d.day = 31}
new_date.to_s.should match(/\A\d{4}-\d{2}-\d{2}\z/)
end
- it "should return a string representation of a partial date in the correct format" do
- new_date = PartialDate::Date.new {|d| d.year = 2012; d.month = 12}
- new_date.to_s.should match(/\A\d{4}-\d{2}\z/)
- end
+ # it "should return a string representation of a partial date in the correct format" do
+ # new_date = PartialDate::Date.new {|d| d.year = 2012; d.month = 12}
+ # new_date.to_s.should match(/\\A\\d{4}-\\d{2}\\z/)
+ # end
- it "should return a string representation of a partial date in the correct format" do
- new_date = PartialDate::Date.new {|d| d.year = 2012}
- new_date.to_s.should match(/\A\d{4}\z/)
- end
+ # it "should return a string representation of a partial date in the correct format" do
+ # new_date = PartialDate::Date.new {|d| d.year = 2012}
+ # new_date.to_s.should match(/\\A\\d{4}\\z/)
+ # end
describe "Sign" do
it "should be set to 1" do
register = 0
register = PartialDate::Date.set_sign(register, 1)