Sha256: c817553f236b14150e1f9c9f69ad58edecaeee4f9cd1ce5dcf87bd4112a6900f
Contents?: true
Size: 273 Bytes
Versions: 18
Compression:
Stored size: 273 Bytes
Contents
require 'spec_helper' describe Virtus::Coercion::Date, '.to_time' do subject { object.to_time(date) } let(:object) { described_class } 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
18 entries across 18 versions & 2 rubygems