Sha256: 362be4bfeb71e83ac5a48441afab52197c353d027e14b4ebe6606af671fd9093

Contents?: true

Size: 632 Bytes

Versions: 12

Compression:

Stored size: 632 Bytes

Contents

require 'spec_helper.rb'

describe ZendeskAPI::Configuration do
  subject { ZendeskAPI::Configuration.new }

  it "should properly merge options" do
    url = "test.host"
    subject.url = url
    subject.options[:url].should == url
  end

  it "should set accept header properly" do
    subject.options[:headers][:accept].should == 'application/json'
  end

  it "should set user agent header properly" do
    subject.options[:headers][:user_agent].should =~ /ZendeskAPI API/
  end

  it "should merge options with client_options" do
    subject.client_options = {:ssl => false}
    subject.options[:ssl].should == false
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
zendesk_api-0.1.11 spec/configuration_spec.rb
zendesk_api-0.1.10 spec/configuration_spec.rb
zendesk_api-0.1.9 spec/configuration_spec.rb
zendesk_api-0.1.8 spec/configuration_spec.rb
zendesk_api-0.1.7 spec/configuration_spec.rb
zendesk_api-0.1.6 spec/configuration_spec.rb
zendesk_api-0.1.5 spec/configuration_spec.rb
zendesk_api-0.1.4 spec/configuration_spec.rb
zendesk_api-0.1.3 spec/configuration_spec.rb
zendesk_api-0.1.2 spec/configuration_spec.rb
zendesk_api-0.1.1 spec/configuration_spec.rb
zendesk_api-0.0.9 spec/configuration_spec.rb