travis-ci
236 of 236 new or added lines in 16 files covered. (100.0%)
7219 of 11573 relevant lines covered (62.38%)
33.13 hits per line
1 |
# encoding: utf-8
|
|
2 |
|
|
3 |
require 'spec_helper'
|
7 all except jruby-9000 ✔ |
4 |
|
|
5 |
describe Github::Client::Repos::Statistics, '#participation' do |
7 all except jruby-9000 ✔ |
6 |
let(:user) { 'peter-murach' } |
7 all except jruby-9000 ✔ |
7 |
let(:repo) { 'github' } |
7 all except jruby-9000 ✔ |
8 |
let(:request_path) { "/repos/#{user}/#{repo}/stats/participation" } |
7 all except jruby-9000 ✔ |
9 |
|
|
10 |
before { |
7 all except jruby-9000 ✔ |
11 |
stub_get(request_path).to_return(:body => body)
|
× |
12 |
} |
|
13 |
|
|
14 |
context "resource found" do |
7 all except jruby-9000 ✔ |
15 |
let(:body) { fixture('repos/participation.json') } |
7 all except jruby-9000 ✔ |
16 |
let(:status) { 200 } |
7 all except jruby-9000 ✔ |
17 |
|
|
18 |
it { expect { subject.participation }.to raise_error(ArgumentError) }
|
7 all except jruby-9000 ✔ |
19 |
|
|
20 |
it "should get the resources" do |
7 all except jruby-9000 ✔ |
21 |
subject.participation user, repo |
× |
22 |
a_get(request_path).should have_been_made |
× |
23 |
end
|
|
24 |
end
|
|
25 |
end
|