Sha256: 433d9cb00d0a89b06d4ebe7b6d4d5e08d409ef2886875d3baf6eb06c63c83007
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Date, '#pred' do subject { object.pred } let(:object) { described_class.today } it { should be_instance_of(described_class) } it 'returns the date 1 day ago' do should eql(object - 1) end it 'is the inverse of #succ' do (subject + 1).should eql(object) end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/date/pred_spec.rb |
axiom-0.1.0 | spec/unit/date/pred_spec.rb |
veritas-0.0.7 | spec/unit/date/pred_spec.rb |
veritas-0.0.6 | spec/unit/date/pred_spec.rb |