Sha256: 5ee5ba08b0a04b5217812cd5196da44d29d6ebc0f17439206c1458ec7a85b3fe

Contents?: true

Size: 631 Bytes

Versions: 4

Compression:

Stored size: 631 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe DpdApi do
  let(:client_key)    { '123' }
  let(:client_number) { '234' }
  let(:base_url)      { 'http://wstest.dpd.ru' }
  let(:auth_params) do
    {
      auth: {
        client_number: client_number,
        client_key:    client_key
      }
    }
  end
  let(:configuration) { described_class.configuration }

  it ".configuration" do
    expect(configuration.client_key).to eq    client_key
    expect(configuration.client_number).to eq client_number
    expect(configuration.base_url).to eq      base_url
    expect(configuration.auth_params).to eq   auth_params
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dpd_api-0.1.3 spec/lib/dpd_api/configuration_spec.rb
dpd_api-0.1.2 spec/lib/dpd_api/configuration_spec.rb
dpd_api-0.1.1 spec/lib/dpd_api/configuration_spec.rb
dpd_api-0.1.0 spec/lib/dpd_api/configuration_spec.rb