Sha256: 60b7e4642b50b791e9bb57dcdb6468bc3112a5a46dc828ae86ea9a041a746e89
Contents?: true
Size: 657 Bytes
Versions: 8
Compression:
Stored size: 657 Bytes
Contents
require 'core/spec_helper' describe ZendeskAPI::Configuration do subject { ZendeskAPI::Configuration.new } it "should properly merge options" do url = "test.host" subject.url = url expect(subject.options[:url]).to eq(url) end it "should set accept header properly" do expect(subject.options[:headers][:accept]).to eq('application/json') end it "should set user agent header properly" do expect(subject.options[:headers][:user_agent]).to match(/ZendeskAPI API/) end it "should merge options with client_options" do subject.client_options = {:ssl => false} expect(subject.options[:ssl]).to eq(false) end end
Version data entries
8 entries across 8 versions & 1 rubygems