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::PubSubHubbub, '#unsubscribe_service' do |
7 all except jruby-9000 ✔ |
6 |
let(:topic) { "https://github.com/peter-murach/github/events/push"} |
7 all except jruby-9000 ✔ |
7 |
let(:callback) { "github://campfire" } |
7 all except jruby-9000 ✔ |
8 |
let(:user) { 'peter-murach' } |
7 all except jruby-9000 ✔ |
9 |
let(:repo) { 'github' } |
7 all except jruby-9000 ✔ |
10 |
let(:service) { 'campfire' } |
7 all except jruby-9000 ✔ |
11 |
|
|
12 |
after { reset_authentication_for subject } |
7 all except jruby-9000 ✔ |
13 |
|
|
14 |
it { expect { subject.unsubscribe_service }.to raise_error(ArgumentError) }
|
7 all except jruby-9000 ✔ |
15 |
|
|
16 |
it "subscribes to service" do |
7 all except jruby-9000 ✔ |
17 |
subject.should_receive(:unsubscribe).with(topic, callback)
|
× |
18 |
subject.unsubscribe_service user, repo, service |
× |
19 |
end
|
|
20 |
end # unsubscribe_service |