Sha256: 5ac971e8d173000ec90fa4095f916d56131165e60bd5925e774e67c1cb7daa4e
Contents?: true
Size: 602 Bytes
Versions: 10
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' module Intercom describe Client do let(:app_id) { 'myappid' } let(:api_key) { 'myapikey' } let(:client) { Client.new(app_id: app_id, api_key: api_key) } it 'should set the base url' do client.base_url.must_equal('https://api.intercom.io') end it 'should be able to change the base url' do prev = client.options(Intercom::Client.set_base_url('https://mymockintercom.io')) client.base_url.must_equal('https://mymockintercom.io') client.options(prev) client.base_url.must_equal('https://api.intercom.io') end end end
Version data entries
10 entries across 10 versions & 1 rubygems