diff --git a/spec/views/hyrax/file_sets/_permission.html.erb_spec.rb b/spec/views/hyrax/file_sets/_permission.html.erb_spec.rb index e1c3690dc9..657a14107a 100644 --- a/spec/views/hyrax/file_sets/_permission.html.erb_spec.rb +++ b/spec/views/hyrax/file_sets/_permission.html.erb_spec.rb @@ -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'