Sha256: 1f35a78281215415dc54db4063a64e8a44bd3af7dd8c2a40da72b07846865955
Contents?: true
Size: 592 Bytes
Versions: 11
Compression:
Stored size: 592 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Github::API, 'endpoint' do let(:endpoint) { "https://my-company/api/v3/" } let(:options) { {:endpoint => endpoint } } let(:path) { "/repos/GitHub/issues-dev/issues" } subject(:api) { described_class.new(options) } before { stub_get(path, 'https://my-company/api/v3'). to_return(:body => "[]", :status => 200, :headers =>{}) } its(:endpoint) { should == endpoint } it "doesn't truncate endpoint" do expect { api.get_request(path) }.not_to raise_error(WebMock::NetConnectNotAllowedError) end end
Version data entries
11 entries across 11 versions & 1 rubygems