Sha256: 7bb20a35cf580a1730270ba167f0c22525d715f3edb30d4ead245f61dae2af0f
Contents?: true
Size: 247 Bytes
Versions: 1
Compression:
Stored size: 247 Bytes
Contents
require 'spec_helper' describe 'Time#pred' do subject { time.pred } let(:time) { Time.now } it 'returns the time 1 second ago' do should == (time - 1) end it 'is the inverse of #succ' do subject.succ.should == time end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.1 | spec/unit/time/pred_spec.rb |