diff --git a/spec/search_builders/hyrax/dashboard/nested_collections_search_builder_spec.rb b/spec/search_builders/hyrax/dashboard/nested_collections_search_builder_spec.rb index 3021c472d0..0925ac24a8 100644 --- a/spec/search_builders/hyrax/dashboard/nested_collections_search_builder_spec.rb +++ b/spec/search_builders/hyrax/dashboard/nested_collections_search_builder_spec.rb @@ -6,7 +6,7 @@ let(:ability) { ::Ability.new(user) } let(:test_nest_direction) { :as_parent } - [false, true].each do |test_valkyrie| + (Hyrax.config.disable_wings ? [true] : [false, true]).each do |test_valkyrie| context "when test_valkyrie is #{test_valkyrie}" do let(:builder) do described_class.new(scope: scope, access: access, collection: collection, nest_direction: test_nest_direction)