Sha256: 472c03ce0e438530800bfbc68b3176609bc4f3f8cd443dca4c0e0c9c63da9153

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 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

    context "with configuration argument" do
      it "initialize with configuration received" do
        
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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