Skip to content

Commit

Permalink
Use proc
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Sep 11, 2024
1 parent 59b524c commit 86a12b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ def exclusion_filter
# config.include(AuthenticationHelpers, :type => :request)
#
# # included in examples where the `:type` metadata matches a proc condition
# config.include(AuthenticationHelpers, :type => ->(type, _metadata) { [:request, :controller].include?(type) })
# config.include(AuthenticationHelpers, :type => proc { |type, _metadata| [:request, :controller].include?(type) })
# end
#
# describe "edit profile", :preferences, :type => :request do
Expand Down

0 comments on commit 86a12b7

Please sign in to comment.