Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'date_calculator'
- describe DateCalculator do
- it "should return the origin year if fewer than 365 days have passed" do
- years_calculator = DateCalculator.new(origin = 1970)
- years_calculator.current_year_from_days(364).should == 1970
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement