spec/hashme/property_spec.rb in hashme-0.2.3 vs spec/hashme/property_spec.rb in hashme-0.2.4
- old
+ new
@@ -58,16 +58,9 @@
prop = subject.new(:date, Time)
obj = prop.build(owner, "2013-06-02T12:00:00Z")
expect(obj.class).to eql(Time)
expect(obj).to eql(Time.utc(2013, 6, 2, 12, 0, 0))
end
-
- it "should assign casted by and property" do
- prop = subject.new(:item, submodel)
- obj = prop.build(owner, {:name => 'test'})
- expect(obj.casted_by).to eql(owner)
- expect(obj.casted_by_property).to eql(prop)
- end
end
context "with an array" do
it "should convert regular array to casted array" do
prop = subject.new(:dates, [Time])