push
travis-ci
11 of 11 new or added lines in 9 files covered. (100.0%)
11470 of 12032 relevant lines covered (95.33%)
1910.49 hits per line
1 |
# encoding: utf-8
|
|
2 |
|
|
3 |
require 'spec_helper'
|
6 all except jruby-9000 ✔ |
4 |
|
|
5 |
describe Github::API, 'endpoint' do |
6 all except jruby-9000 ✔ |
6 |
let(:endpoint) { "https://my-company/api/v3/" } |
18 all except jruby-9000 ✔ |
7 |
let(:options) { {:endpoint => endpoint } } |
18 all except jruby-9000 ✔ |
8 |
let(:path) { "/repos/GitHub/issues-dev/issues" } |
18 all except jruby-9000 ✔ |
9 |
|
|
10 |
subject(:api) { described_class.new(options) }
|
18 all except jruby-9000 ✔ |
11 |
|
|
12 |
before { |
6 all except jruby-9000 ✔ |
13 |
stub_get(path, 'https://my-company/api/v3').
|
× |
14 |
to_return(:body => "[]", :status => 200, :headers =>{}) |
12 all except jruby-9000 ✔ |
15 |
} |
|
16 |
|
|
17 |
its(:endpoint) { should == endpoint }
|
12 all except jruby-9000 ✔ |
18 |
|
|
19 |
it "doesn't truncate endpoint" do |
6 all except jruby-9000 ✔ |
20 |
expect { api.get_request(path) }.not_to raise_error() |
12 all except jruby-9000 ✔ |
21 |
end
|
|
22 |
end
|