Sha256: ab5396101d2bc979ea1e7b1624d9b03b14e1ede13b41567721e4d38aa249a92c
Contents?: true
Size: 817 Bytes
Versions: 14
Compression:
Stored size: 817 Bytes
Contents
require 'spec_helper' module Landable # descriptions describe Librarian do # setup before do @page = create(:page) end # tests it "should soft delete a content managed Item" do # setup current_page = Page.find(@page.id) # actions current_page.deactivate # expectations expect(current_page).to be_a Page expect(current_page.deleted_at).to_not be_blank # end end it "should restore a content managed Item" do # setup Page.find(@page.id).deactivate restored_page = Page.find(@page.id) # actions restored_page.reactivate # expectations expect(restored_page).to be_a Page expect(restored_page.deleted_at).to be_blank # end end # end end # end end
Version data entries
14 entries across 14 versions & 1 rubygems