Sha256: 833243ee30e357edbd564fd25bbe2711ad1dfcc15504f8a841bef9a00abb4259
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe 'destroy' do before(:each) do @comment = Comment.create! :title => 'title' @comment_id = @comment.id @comment.destroy end it "should unset the id" do @comment._id.should be_nil end it "should unset the revision" do @comment._rev.should be_nil end it "should remove the document from the database" do lambda { CouchPotato::Persistence.Db.get(@comment_id).should }.should raise_error(RestClient::ResourceNotFound) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
langalex-couch_potato-0.1 | spec/destroy_spec.rb |