Sha256: bd371a7103975236b2036a74ae7ce48882bf1175f25223e9e2abe239a590fa89
Contents?: true
Size: 268 Bytes
Versions: 14
Compression:
Stored size: 268 Bytes
Contents
require 'spec_helper' describe Coercer::Date, '.to_time' do subject { object.to_time(date) } let(:object) { described_class.new } let(:date) { Date.new(2011, 1, 1) } it { should be_instance_of(Time) } it { should eql(Time.local(2011, 1, 1)) } end
Version data entries
14 entries across 12 versions & 4 rubygems