Sha256: 26b1b4849ac10300d53f16d4eed0c078ea3aa75a496b2c62b90732eccf300b81
Contents?: true
Size: 558 Bytes
Versions: 11
Compression:
Stored size: 558 Bytes
Contents
require File.join(File.dirname(__FILE__), '../test_helper') require 'apipie_bindings/authenticators/basic_auth' describe ApipieBindings::Authenticators::BasicAuth do let(:authenticator) { ApipieBindings::Authenticators::BasicAuth.new(user, passwd) } let(:user) { 'john_doe' } let(:passwd) { 'secret_password' } let(:request) { mock() } let(:args) { {} } describe '#authenticate' do it 'adds base auth to the request' do request.expects(:basic_auth).with(user, passwd) authenticator.authenticate(request, args) end end end
Version data entries
11 entries across 11 versions & 1 rubygems