Advertisement
saasbook

date_calculator_spec_1.rb

Jan 10th, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.25 KB | None | 0 0
  1. require 'date_calculator'
  2. describe DateCalculator do
  3.   it "should return the origin year if fewer than 365 days have passed" do
  4.     years_calculator = DateCalculator.new(origin = 1970)
  5.     years_calculator.current_year_from_days(364).should == 1970
  6.   end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement