spec/date/strptime_spec.rb in third_base-1.0.0 vs spec/date/strptime_spec.rb in third_base-1.0.1
- old
+ new
@@ -57,11 +57,11 @@
Date.strptime("69", "%g").should == Date.civil(1968, 12, 30)
end
it "should be able to parse the year day with leading zeroes" do
d = Date.today
- Date.strptime("050", "%j").should == Date.civil(2008, 2, 19)
+ Date.strptime("050", "%j").should == Date.civil(Date.today.year, 2, 19)
end
it "should be able to parse the month with leading zeroes" do
d = Date.today
Date.strptime("04", "%m").should == Date.civil(d.year, 4, 1)
@@ -113,6 +113,6 @@
it "should be able to show MM/DD/YY" do
Date.strptime("04/06/00", "%x").should == Date.civil(2000, 4, 6)
Date.strptime("04/06/00", "%m/%d/%y").should == Date.civil(2000, 4, 6)
end
-end
\ No newline at end of file
+end