Sha256: bedea180d4d582f1a06882ca27db69b35fa21908f89f90b87c0a16c307e1c109
Contents?: true
Size: 461 Bytes
Versions: 6
Compression:
Stored size: 461 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Date, '#iso8601' do subject { object.iso8601 } context 'when the date is frozen' do let(:object) { described_class.new(2010, 12, 31).freeze } it { should respond_to(:to_s) } it { should == '2010-12-31' } end context 'when the date is not frozen' do let(:object) { described_class.new(2010, 12, 31) } it { should respond_to(:to_s) } it { should == '2010-12-31' } end end
Version data entries
6 entries across 6 versions & 2 rubygems