Sha256: aabca67c72534d6583dcd52f21ce2440bb9fd54460389abde2924bd473ae56f2
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
require 'spec_helper' RSpec.describe CurationConcerns::Workflow::DeactivateObject do let(:work) { instance_double(GenericWork) } let(:entity) { instance_double(Sipity::Entity, id: 9999, proxy_for: work) } let(:user) { User.new } describe ".call" do subject do described_class.call(entity: entity, comment: "A pleasant read", user: user) end it "makes it active" do expect(work).to receive(:state=).with(Vocab::FedoraResourceStatus.inactive) subject end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.7.0.beta1 | spec/services/curation_concerns/workflow/deactivate_object_spec.rb |