Created
October 4, 2014 19:43
-
-
Save joemsak/3820505471393647bf40 to your computer and use it in GitHub Desktop.
This file contains 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
require 'dude_weak' | |
describe Week do | |
let(:today) { Time.parse('Jul 11, 2012') } | |
let(:week) { Week.new(today) } | |
it "returns its monday" do | |
week.monday.should == Time.parse('Jul 9, 2012') | |
end | |
it "returns its number" do | |
week.number.should == 28 | |
end | |
it "returns its year" do | |
week.year.should == 2012 | |
end | |
# ... and more ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment