Skip to content

Instantly share code, notes, and snippets.

@baldur
Created October 29, 2008 15:09
Show Gist options
  • Save baldur/20711 to your computer and use it in GitHub Desktop.
Save baldur/20711 to your computer and use it in GitHub Desktop.
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