From be6105b9583e70937a86db67d06605b12b4b958b Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Tue, 22 Aug 2023 21:32:21 -0700 Subject: [PATCH] disable generated Controller specs for AF models if `disable_wings` these concrete controller specs are replaced by tests of the abstract behavior, tested against valkyrie models. disable them when we `disable_wings` --- spec/controllers/hyrax/generic_works_controller_json_spec.rb | 2 +- spec/controllers/hyrax/generic_works_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/hyrax/generic_works_controller_json_spec.rb b/spec/controllers/hyrax/generic_works_controller_json_spec.rb index 7d27b0c867..939375ede3 100644 --- a/spec/controllers/hyrax/generic_works_controller_json_spec.rb +++ b/spec/controllers/hyrax/generic_works_controller_json_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # This tests the Hyrax::WorksControllerBehavior module # which is included into .internal_test_app/app/controllers/hyrax/generic_works_controller.rb -RSpec.describe Hyrax::GenericWorksController do +RSpec.describe Hyrax::GenericWorksController, :active_fedora do routes { Rails.application.routes } let(:user) { create(:user) } diff --git a/spec/controllers/hyrax/generic_works_controller_spec.rb b/spec/controllers/hyrax/generic_works_controller_spec.rb index af95bc1b3b..25def825f7 100644 --- a/spec/controllers/hyrax/generic_works_controller_spec.rb +++ b/spec/controllers/hyrax/generic_works_controller_spec.rb @@ -3,7 +3,7 @@ # which is included into .internal_test_app/app/controllers/hyrax/generic_works_controller.rb require 'hyrax/specs/spy_listener' -RSpec.describe Hyrax::GenericWorksController do +RSpec.describe Hyrax::GenericWorksController, :active_fedora do routes { Rails.application.routes } let(:main_app) { Rails.application.routes.url_helpers } let(:hyrax) { Hyrax::Engine.routes.url_helpers }