spec/couchrest/persistence_spec.rb in couchrest_model-1.1.0.beta3 vs spec/couchrest/persistence_spec.rb in couchrest_model-1.1.0.beta4
- old
+ new
@@ -225,10 +225,10 @@
@templated['important-field'] = 'very-important'
@templated.save.should be_true
@templated['important-field'] = 'not-important'
@templated.save.should be_true
t = WithTemplateAndUniqueID.get('very-important')
- t.should == @templated
+ t.id.should == @templated.id
end
it "should raise an error when the id is taken" do
@templated['important-field'] = 'very-important'
@templated.save.should be_true