Sha256: 383fce99b20e8c4cdbd92b5e55d153958667ab898deae927e173ec0e34b80eae
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' RSpec.describe CurationConcerns::Workflow::RemoveDepositorPermissions do let(:work) { create(:work) } 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 "strips edit access " do subject expect(work).to be_valid expect(work.edit_users).to eq [] 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/remove_depositor_permissions_spec.rb |