Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'simplecov'
- SimpleCov.start
- require './time_setter'
- describe TimeSetter do
- { 365 => 1980, 366 => 1981, 900 => 1982 }.each_pair do |arg,result|
- it "#{arg} days puts us in #{result}" do
- TimeSetter.convert(arg).should == result
- end
- end
- end
Add Comment
Please, Sign In to add comment