Sha256: 32ab759a367edac9a6d8fc4eee04b3e5d4b1aa801463ab45993ae08fc2c4c56e

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Date, '#pred' do
  subject { object.pred }

  let(:object) { described_class.today }

  it { should be_kind_of(described_class) }

  it 'returns the date 1 day ago' do
    should == (object - 1)
  end

  it 'is the inverse of #succ' do
    subject.succ.should == object
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/date/pred_spec.rb