travis-ci
78 of 78 new or added lines in 4 files covered. (100.0%)
10903 of 11313 relevant lines covered (96.38%)
1520.16 hits per line
1 |
# encoding: utf-8
|
|
2 |
|
|
3 |
require 'spec_helper'
|
5 all except jruby-9000 ✔ |
4 |
|
|
5 |
describe Github::ResponseWrapper, 'overwrites' do |
5 all except jruby-9000 ✔ |
6 |
let(:object) { described_class.new res, nil } |
20 all except jruby-9000 ✔ |
7 |
let(:env) {
|
5 all except jruby-9000 ✔ |
8 |
{ :status => 404, :body => body, |
× |
9 |
:response_headers => {'Content-Type' => 'text/plain'} } |
15 all except jruby-9000 ✔ |
10 |
} |
|
11 |
let(:res) { Faraday::Response.new env } |
20 all except jruby-9000 ✔ |
12 |
let(:body) { {'id' => 2456210, 'fork' => false, 'type' => 'repo' } } |
20 all except jruby-9000 ✔ |
13 |
|
|
14 |
it { expect(object.id).to eql(2456210) }
|
10 all except jruby-9000 ✔ |
15 |
|
|
16 |
it { expect(object.fork).to be_false } |
10 all except jruby-9000 ✔ |
17 |
|
|
18 |
it { expect(object.type).to eql('repo') }
|
10 all except jruby-9000 ✔ |
19 |
end
|