Sha256: 2ff6b018142bae3000d2d422b4be3725753a60ece2910e17558f055b5117b504
Contents?: true
Size: 305 Bytes
Versions: 14
Compression:
Stored size: 305 Bytes
Contents
require 'spec_helper' describe Coercer::DateTime, '.to_string' do subject { object.to_string(date_time) } let(:object) { described_class.new } let(:date_time) { DateTime.new(2011, 1, 1, 0, 0, 0, 0) } it { should be_instance_of(String) } it { should eql('2011-01-01T00:00:00+00:00') } end
Version data entries
14 entries across 12 versions & 4 rubygems