Skip to content

Commit

Permalink
Exclude the new warning require checker from RSpec filter
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Feb 23, 2024
1 parent aa1c32d commit 6fe6ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/support/caller_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CallerFilter
# when `CallerFilter.first_non_rspec_line` is called from the top level of a required
# file, but it depends on if rubygems is loaded or not. We don't want to have to deal
# with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
IGNORE_REGEX = Regexp.union(LIB_REGEX, "rubygems/core_ext/kernel_require.rb", "<internal:")
IGNORE_REGEX = Regexp.union(LIB_REGEX, "rubygems/core_ext/kernel_require.rb", "<internal:", %r{/lib/ruby/[^/]+/bundled_gems\.rb})

if RSpec::Support::RubyFeatures.caller_locations_supported?
# This supports args because it's more efficient when the caller specifies
Expand Down

0 comments on commit 6fe6ba5

Please sign in to comment.