Sha256: 0283e8c384fa42fb1c160d49f2651fcab96a2a11a6662d2f99eac8673e9c3770

Contents?: true

Size: 645 Bytes

Versions: 3

Compression:

Stored size: 645 Bytes

Contents

module VzaarApi
  module Lib
    describe Api do

      before do
        VzaarApi.auth_token = auth_token
        VzaarApi.client_id = client_id
        VzaarApi.hostname = hostname
      end

      let(:auth_token) { 'auth-token' }
      let(:client_id) { 'client-id' }
      let(:hostname) { 'app.vzaar.localhost' }

      describe '#headers' do
        let(:expected_result) do
          {
            'X-Auth-Token' => auth_token,
            'X-Client-Id'  => client_id,
            'Content-Type' => 'application/json'
          }
        end
        specify { expect(subject.headers).to eq expected_result }
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vzaar_api-2.0.2 spec/vzaar_api/lib/api_spec.rb
vzaar_api-2.0.1 spec/vzaar_api/lib/api_spec.rb
vzaar_api-2.0.0 spec/vzaar_api/lib/api_spec.rb