Sha256: bb72408704a32d1dd6360f4e34ce59386daa3f251c00a9cfca16de23a0d20e26

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe AgraApi::Client do

  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

9 entries across 9 versions & 1 rubygems

Version Path
agra_api-0.3.5 spec/client_spec.rb
agra_api-0.3.4 spec/client_spec.rb
agra_api-0.3.3 spec/client_spec.rb
agra_api-0.3.2 spec/client_spec.rb
agra_api-0.3.1 spec/client_spec.rb
agra_api-0.3.0 spec/client_spec.rb
agra_api-0.2.1 spec/client_spec.rb
agra_api-0.2.0 spec/client_spec.rb
agra_api-0.1.1 spec/client_spec.rb