Sha256: 6ec837981c7b1cb76d5c773aed428e0d2e02b34b1e881f758c6bc9053582ca6d
Contents?: true
Size: 425 Bytes
Versions: 68
Compression:
Stored size: 425 Bytes
Contents
require 'rails_helper' describe LHC::Auth do before(:each) do LHC.config.interceptors = [LHC::Auth] end it 'adds basic auth to every request' do options = { basic: { username: 'steve', password: 'can' } } LHC.config.endpoint(:local, 'http://local.ch', auth: options) stub_request(:get, 'http://local.ch') .with(headers: { 'Authorization' => 'Basic c3RldmU6Y2Fu' }) LHC.get(:local) end end
Version data entries
68 entries across 68 versions & 2 rubygems