Sha256: 390ae5f8b70df74ea0f5b33850ee2c26d3939379514024f9dec228d31600be54
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Time, '#pred' do subject { object.pred } let(:object) { described_class.now } it { should be_instance_of(described_class) } it 'returns the time 1 second ago' do should eql(object - 1) end it 'is the inverse of #succ' do (subject + 1).should eql(object) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/time/pred_spec.rb |