From 193fa1f6dd4fbeb6445672d852f1dce245999e6a Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Wed, 25 Oct 2023 07:08:46 -0700 Subject: [PATCH] disable `work_form_spec` when AF is disabled the unit under test inherits `HydraEditor::Form`, which is only relevant for ActiveFedora. don't test it if we're not using AF models. fixes #6308 --- spec/forms/hyrax/forms/work_form_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/forms/hyrax/forms/work_form_spec.rb b/spec/forms/hyrax/forms/work_form_spec.rb index 6c767d733d..9b86c222dc 100644 --- a/spec/forms/hyrax/forms/work_form_spec.rb +++ b/spec/forms/hyrax/forms/work_form_spec.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -RSpec.describe Hyrax::Forms::WorkForm do +RSpec.describe Hyrax::Forms::WorkForm, :active_fedora do let(:work) { GenericWork.new } let(:form) { described_class.new(work, nil, controller) } let(:works) { [GenericWork.new, FileSet.new, GenericWork.new] }