spec/request/scrubbed_headers_spec.rb in lhc-15.2.0 vs spec/request/scrubbed_headers_spec.rb in lhc-15.2.1
- old
+ new
@@ -72,9 +72,17 @@
it 'scrubs nothing' do
LHC.config.scrubs = {}
expect(request.scrubbed_headers).to include(authorization_header)
end
+
+ context 'when the bearer_token is nil' do
+ let(:bearer_token) { nil }
+
+ it 'scrubs nothing' do
+ expect(request.scrubbed_headers).to include(authorization_header)
+ end
+ end
end
context 'basic authentication' do
let(:username) { 'steve' }
let(:password) { 'abcdefg' }