Skip to content

Commit

Permalink
🧹 Assigning collection_type
Browse files Browse the repository at this point in the history
The partials rendered in the tested view assume that we've set a
collection type.
  • Loading branch information
jeremyf committed Dec 20, 2023
1 parent 7cd50e0 commit 70099cb
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 70099cb

Please sign in to comment.