Skip to content

Commit

Permalink
Merge pull request #2094 from samvera/hyrax-5-upgrade-fixing-dashboar…
Browse files Browse the repository at this point in the history
…d-collections

🧹 Assigning collection_type
  • Loading branch information
jeremyf committed Dec 20, 2023
2 parents 00e3ce8 + 70099cb commit c0bca4a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
to_key: template.to_key,
access_grants: template.access_grants)
end
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) }

before do
assign(:collection, collection)
assign(:collection_type, collection_type)
@form = instance_double(Hyrax::Forms::CollectionForm,
to_model: collection,
permission_template: pt_form,
Expand Down

0 comments on commit c0bca4a

Please sign in to comment.