Sha256: 82d793ec9e0206a983d3274ef289de5a6f9b797637748e32cb5368ef971b6829
Contents?: true
Size: 725 Bytes
Versions: 12
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' RSpec.describe CurationConcerns::Workflow::DeactivateObject do let(:work) { create(:generic_work) } let(:user) { create(:user) } describe ".call" do it "makes it inactive" do if RDF::VERSION.to_s < '2.0' expect { described_class.call(target: work, comment: "A pleasant read", user: user) } .to change { work.state } .from(nil) .to(instance_of(ActiveTriples::Resource)) else expect { described_class.call(target: work, comment: "A pleasant read", user: user) } .to change { work.state } .from(nil) .to(::RDF::URI('http://fedora.info/definitions/1/0/access/ObjState#inactive')) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems