Created
January 4, 2010 17:49
-
-
Save jruby/268685 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/library/date/strptime_spec.rb b/library/date/strptime_spec.rb | |
index 051da94..e7a18d3 100644 | |
--- a/library/date/strptime_spec.rb | |
+++ b/library/date/strptime_spec.rb | |
@@ -78,9 +78,8 @@ describe "Date#strptime" do | |
end | |
it "should be able to show the week number with the week starting on sunday and monday" do | |
- d = Date.today | |
- Date.strptime("14", "%U").should == Date.commercial(d.cwyear, d.cweek, 7) + 7 * 13 | |
- Date.strptime("14", "%W").should == Date.commercial(d.cwyear, d.cweek, 7) + 7 * 14 | |
+ Date.strptime("2009/14", "%Y/%U").should == Date.commercial(2009, 14, 7) | |
+ Date.strptime("2009/14", "%Y/%W").should == Date.commercial(2009, 15, 7) | |
end | |
it "should be able to show the commercial week day" do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment