diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 578bf961c..e5bafbec1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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