diff --git a/lib/rspec/core/configuration.rb b/lib/rspec/core/configuration.rb index 18e4bef0b..641a1cc78 100644 --- a/lib/rspec/core/configuration.rb +++ b/lib/rspec/core/configuration.rb @@ -1409,6 +1409,9 @@ def exclusion_filter # # # included in examples with `:type => :request` metadata # config.include(AuthenticationHelpers, :type => :request) + # + # # included in examples where the `:type` metadata matches a proc condition + # config.include(AuthenticationHelpers, :type => proc { |type, _metadata| [:request, :controller].include?(type) }) # end # # describe "edit profile", :preferences, :type => :request do