Sha256: 698629c8d3fc65842aa3ef902c1f73c36d3a6499cdd0379757de6a420c06f24a

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

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

describe TokyoApi::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 { config.username.should eq 'login' }
      specify { config.password.should eq 'password' }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_api-0.2.0 spec/client_spec.rb