Sha256: 1dbf1dcfb1454d0931dc9399e12b935f4631de6a0e2994778b55510b28621795
Contents?: true
Size: 325 Bytes
Versions: 30
Compression:
Stored size: 325 Bytes
Contents
require 'spec_helper' describe RestModel::Serialization::Float do it "converts to float" do subject.class.serialize('1200.49').should == 1200.49 end context "when an invalid value is serialized" do it "raises an error" do expect {subject.class.serialize("not a float")}.to raise_error end end end
Version data entries
30 entries across 30 versions & 1 rubygems