Sha256: dc1ec523044f63233aa0d64ce8bdfb2063d6c50a2c18856e73a0fceb06c4d6ae

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")

describe TijuanaClient::Client do
  specify { expect(subject).to respond_to :user }

  describe 'instantiated' do
    subject { described_class.new(options) }

    context 'process_basic_auth' do
      let(:options) { { basic_auth: 'login:password' } }
      let(:config) { subject.connection.configuration }
      specify { expect(config.username).to eq 'login' }
      specify { expect(config.password).to eq 'password' }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tijuana_client-0.3.1 spec/client_spec.rb
tijuana_client-0.3.0 spec/client_spec.rb