Repository URL to install this package:
|
Version:
0.0.1 ▾
|
require 'spec_helper'
RSpec.describe Gingr::Client do
it 'should connect using the configured endpoint and api version' do
client = Gingr::Client.new({company_name: 'company'})
endpoint = URI.parse("#{client.endpoint}#{client.api_version}/")
connection = client.send(:connection).build_url(nil).to_s
expect(connection).to eq('https://company.gingrapp.com/')
end
end