serialize_accessors 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,10 @@ describe SerializeAccessors do
|
|
30
30
|
@person.contact.should be_a Hash
|
31
31
|
end
|
32
32
|
|
33
|
+
it "gets nil if attribute doesnt exist on serialized field" do
|
34
|
+
@person.email.should be_nil
|
35
|
+
end
|
36
|
+
|
33
37
|
it "gets value of attribute through getter" do
|
34
38
|
@person.contact = { :first_name => "Joe", :last_name => "Smith" }
|
35
39
|
@person.first_name.should eql "Joe"
|