Updating destroy specs for DocumentNotFound message
This commit is contained in:
parent
634fdf8b2f
commit
de1cab1271
|
@ -267,7 +267,7 @@ describe "Model Persistence" do
|
||||||
end
|
end
|
||||||
it "should make it go away" do
|
it "should make it go away" do
|
||||||
@dobj.destroy
|
@dobj.destroy
|
||||||
lambda{Basic.get!(@dobj.id)}.should raise_error(RestClient::ResourceNotFound)
|
lambda{Basic.get!(@dobj.id)}.should raise_error(CouchRest::Model::DocumentNotFound)
|
||||||
end
|
end
|
||||||
it "should freeze the object" do
|
it "should freeze the object" do
|
||||||
@dobj.destroy
|
@dobj.destroy
|
||||||
|
@ -277,7 +277,7 @@ describe "Model Persistence" do
|
||||||
it "trying to save after should fail" do
|
it "trying to save after should fail" do
|
||||||
@dobj.destroy
|
@dobj.destroy
|
||||||
lambda { @dobj.save }.should raise_error(StandardError)
|
lambda { @dobj.save }.should raise_error(StandardError)
|
||||||
lambda{Basic.get!(@dobj.id)}.should raise_error(RestClient::ResourceNotFound)
|
lambda{Basic.get!(@dobj.id)}.should raise_error(CouchRest::Model::DocumentNotFound)
|
||||||
end
|
end
|
||||||
it "should make destroyed? true" do
|
it "should make destroyed? true" do
|
||||||
@dobj.destroyed?.should be_false
|
@dobj.destroyed?.should be_false
|
||||||
|
|
Loading…
Reference in a new issue