Sha256: 5ebf15dbf62260df193aadda6a2969ad55e31a1c9455f7fee4661dbd7837cf3a
Contents?: true
Size: 378 Bytes
Versions: 2
Compression:
Stored size: 378 Bytes
Contents
describe Time do describe "#infinite?" do it "is true when an infinite time" do InfiniteTime.new.infinite?.should == true end it "is false when not an infinite time" do Time.new.infinite?.should == false end end describe "comparison" do it "still works against other times" do (Time.now < Time.now).should be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infinite_time-0.0.2 | spec/infinite_time/core_ext_spec.rb |
infinite_time-0.0.1 | spec/infinite_time/core_ext_spec.rb |