Skip to content

Commit

Permalink
Merge pull request #6577 from samvera/updates__permission_html_erb_spec
Browse files Browse the repository at this point in the history
Valkyrizes `spec/views/hyrax/file_sets/_permission.html.erb_spec.rb`.
  • Loading branch information
dlpierce authored Jan 5, 2024
2 parents 9a3e962 + 3f150dc commit 548ccd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# frozen_string_literal: true
RSpec.describe 'hyrax/file_sets/_permission.html.erb', type: :view do
let(:file_set) { stub_model(FileSet) }
let(:form_object) { Hyrax::Forms::FileSetEditForm.new(file_set) }
let(:form_object) do
if Hyrax.config.disable_wings
Hyrax::Forms::ResourceForm.for(resource: file_set).prepopulate!
else
Hyrax::Forms::FileSetEditForm.new(file_set)
end
end

before do
stub_template "hyrax/file_sets/_permission_form.html.erb" => 'a form'
Expand Down

0 comments on commit 548ccd9

Please sign in to comment.