Created
October 29, 2008 15:09
-
-
Save baldur/20711 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Expiry do | |
4 it "should calculate expiry in days" do | |
5 exp = Expiry.new(2.days.from_now) | |
6 exp.days.should be_equal(2) | |
7 end | |
8 | |
9 it "should calculate expiry in hours" do | |
10 exp = Expiry.new(100.hours.from_now) | |
11 exp.hours.should be_equal(100) | |
12 end | |
13 | |
14 end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment