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