Sha256: 91b7824e411aafecbd8132727730e594d9e13edb95409ec8d6dbf89ff9450a8f

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

require "spec_helper"

describe 'ApiClient' do
  let(:subject) { AgridClient::ApiClient.new }

  describe "#new" do
    context "without arguments" do
      it "initialize with default configuration" do
        version = AgridClient::VERSION
        expect(subject.default_headers).to eq({
            'Content-Type': 'application/json',
            'User-Agent': "agrid_client/#{version}/ruby"
        })
      end
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
agrid-client-0.0.2 spec/api_client_spec.rb