Skip to content

Commit

Permalink
🤖 Bring over Hyrax spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Dec 20, 2023
1 parent 408d518 commit 4319562
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
let(:template) { stub_model(Hyrax::PermissionTemplate) }
let(:user) { create(:user) }
let(:access_grant) { nil }
let(:collection) { stub_model(Collection, share_applies_to_new_works?: false) }
let(:collection) { stub_model(Collection) }
let(:collection_type) { stub_model(Hyrax::CollectionType, share_applies_to_new_works?: false) }
let(:pt_form) do
instance_double(Hyrax::Forms::PermissionTemplateForm,
model_name: template.model_name,
Expand All @@ -14,14 +15,13 @@

before do
assign(:collection, collection)
assign(:collection_type, collection_type)
@form = instance_double(Hyrax::Forms::CollectionForm,
to_model: stub_model(Collection),
permission_template: pt_form,
filter_access_grants_by_access: [access_grant])
# Ignore the delete button link
# allow(view).to receive(
# :admin_permission_template_access_path
# ).and_return("/admin/permission_template_accesses/123")
allow(view.hyrax).to receive(:admin_permission_template_access_path).and_return("/admin/permission_template_accesses/123")
end

describe "Manager shares table" do
Expand Down

0 comments on commit 4319562

Please sign in to comment.