lib/pact/provider/pact_uri.rb in pact-1.8.0 vs lib/pact/provider/pact_uri.rb in pact-1.8.1
- old
+ new
@@ -11,8 +11,17 @@
def == other
other.is_a?(PactURI) &&
uri == other.uri &&
options == other.options
end
+
+ def to_s
+ if(options[:username])
+ URI(@uri).tap { |x| x.userinfo="#{options[:username]}:*****"}.to_s
+ else
+ @uri
+ end
+
+ end
end
end
end
\ No newline at end of file