Skip to content

Commit

Permalink
disable generated Controller specs for AF models if disable_wings
Browse files Browse the repository at this point in the history
these concrete controller specs are replaced by tests of the abstract behavior,
tested against valkyrie models. disable them when we `disable_wings`
  • Loading branch information
tamsin johnson authored and dunn committed Aug 24, 2023
1 parent a9f5dc4 commit be6105b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/hyrax/generic_works_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit be6105b

Please sign in to comment.