Sha256: be8099281cf6c22023069fc526fc95bf69ee1e25cba517edffe42ec7520cf7d6
Contents?: true
Size: 339 Bytes
Versions: 25
Compression:
Stored size: 339 Bytes
Contents
require 'spec_helper' describe Resource::Serialization::Date do it "converts to date" do subject.class.serialize('2011-07-01').should == Date.new(2011, 07, 01) end context "when an invalid value is serialized" do it "raises an error" do expect {subject.class.serialize("not a date")}.to raise_error end end end
Version data entries
25 entries across 25 versions & 1 rubygems