Sha256: 188551d4c3a31bf7f31274f17ae11445aeddd87e11b31476c8ee078ea2c75a69
Contents?: true
Size: 548 Bytes
Versions: 8
Compression:
Stored size: 548 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() end end
Version data entries
8 entries across 8 versions & 1 rubygems