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.
@@ -1,3 +1,3 @@
1
1
  module SerializeAccessors
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialize_accessors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: