Sha256: fcfe5c11aa0f42ce4b16b4378a69e88f6f50e2f8dcb86e6f32b41fa58d1eaf5a
Contents?: true
Size: 509 Bytes
Versions: 97
Compression:
Stored size: 509 Bytes
Contents
require 'pact_broker/client/hal/authorization_header_redactor' module PactBroker module Client module Hal describe AuthorizationHeaderRedactor do let(:stream) { StringIO.new } let(:stream_redactor) { AuthorizationHeaderRedactor.new(stream) } it "redacts the authorizaton header" do stream_redactor << "\\r\\nAuthorization: Bearer TOKEN\\r\\n" expect(stream.string).to eq "\\r\\nAuthorization: [redacted]\\r\\n" end end end end end
Version data entries
97 entries across 97 versions & 1 rubygems