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