Skip to content

Commit

Permalink
Custom WebMock matcher no longer needed for ssrf_filter 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Nov 10, 2024
1 parent 8485fee commit 61c2732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def inspect

def stub_request(method, uri)
uri = URI.parse(uri) if uri.is_a?(String)
if uri.is_a?(URI)
if uri.is_a?(URI) && Gem::Version.new(SsrfFilter::VERSION) < Gem::Version.new('1.2.0')
super method, Matcher.new(uri)
else
super
Expand Down

0 comments on commit 61c2732

Please sign in to comment.