spec/structure_spec.rb in structure-0.5.0 vs spec/structure_spec.rb in structure-0.6.0

- old
+ new

@@ -152,11 +152,11 @@ end end context "when type is Structure" do before(:all) do - Person.key :father, :type => Structure + Person.has_one :father end context "when setting to a value that is not a Structure" do it "raises an error" do expect do @@ -174,21 +174,9 @@ end context "when a default is not specified" do it "defaults to nil" do person.age.should be_nil - end - end - - context "when frozen" do - before do - person.freeze - end - - it "raises an error" do - expect do - person.name = 'Joe' - end.to raise_error TypeError end end context "when setting the value of an attribute to nil" do it "does not typecast the value" do