Sha256: d57741a90c8a38482b90a0aa92cf3f6cc3031203ea6f4d395d96c747a5ac9450
Contents?: true
Size: 839 Bytes
Versions: 8
Compression:
Stored size: 839 Bytes
Contents
require 'spec_helper' require 'hyrax/specs/shared_specs' RSpec.describe Hyrax::Workflow::DeactivateObject do let(:work) { create(:generic_work) } let(:user) { create(:user) } let(:workflow_method) { described_class } it_behaves_like "a Hyrax workflow method" 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
8 entries across 8 versions & 1 rubygems