spec/unit/coercible/coercer/integer/to_datetime_spec.rb in coercible-0.0.2 vs spec/unit/coercible/coercer/integer/to_datetime_spec.rb in coercible-0.1.0
- old
+ new
@@ -4,7 +4,9 @@
subject { object.to_datetime(value) }
let(:object) { described_class.new }
let(:value) { 1361036672 }
- it { should be_instance_of(DateTime) }
+ specify do
+ expect(subject.strftime('%Y-%m-%d %H:%M:%S.%L')).to eql('2013-02-16 17:44:32.000')
+ end
end