Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created October 4, 2014 19:43
Show Gist options
  • Save joemsak/3820505471393647bf40 to your computer and use it in GitHub Desktop.
Save joemsak/3820505471393647bf40 to your computer and use it in GitHub Desktop.
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