saasbook

date_calculator_characterization_spec.rb

Aug 15th, 2013
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.26 KB | None | 0 0
  1. require 'simplecov'
  2. SimpleCov.start
  3. require './time_setter'
  4. describe TimeSetter do
  5.   { 365 => 1980, 366 => 1981, 900 => 1982 }.each_pair do |arg,result|
  6.     it "#{arg} days puts us in #{result}" do
  7.       TimeSetter.convert(arg).should == result
  8.     end
  9.   end
  10. end
Add Comment
Please, Sign In to add comment