Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 86a12b7

Browse files
authored
Use proc
1 parent 59b524c commit 86a12b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/core/configuration.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ def exclusion_filter
14111411
# config.include(AuthenticationHelpers, :type => :request)
14121412
#
14131413
# # included in examples where the `:type` metadata matches a proc condition
1414-
# config.include(AuthenticationHelpers, :type => ->(type, _metadata) { [:request, :controller].include?(type) })
1414+
# config.include(AuthenticationHelpers, :type => proc { |type, _metadata| [:request, :controller].include?(type) })
14151415
# end
14161416
#
14171417
# describe "edit profile", :preferences, :type => :request do

0 commit comments

Comments
 (0)