From 3f150dc0b57a2a9660049813442e988a8382498b Mon Sep 17 00:00:00 2001 From: bwatson78 Date: Fri, 5 Jan 2024 11:06:34 -0600 Subject: [PATCH] Valkyrizes spec/views/hyrax/file_sets/_permission.html.erb_spec.rb. --- spec/views/hyrax/file_sets/_permission.html.erb_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'