Sha256: 9fe956e479daf895527a6ae38791956ec817d59cb9a457dd1069a8f5974dc832

Contents?: true

Size: 613 Bytes

Versions: 14

Compression:

Stored size: 613 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Repos::PubSubHubbub, '#unsubscribe_service' do
  let(:topic)  { "https://github.com/peter-murach/github/events/push"}
  let(:callback) { "github://campfire" }
  let(:user) { 'peter-murach' }
  let(:repo) { 'github' }
  let(:service) { 'campfire' }

  after { reset_authentication_for subject }

  it { expect { subject.unsubscribe_service }.to raise_error(ArgumentError) }

  it "subscribes to service" do
    subject.should_receive(:unsubscribe).with(topic, callback)
    subject.unsubscribe_service user, repo, service
  end

end # unsubscribe_service

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
github_api-0.11.3 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.11.2 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.11.1 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.11.0 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.10.2 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.10.1 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.10.0 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.7 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.6 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.5 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.4 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.3 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.2 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb
github_api-0.9.1 spec/github/repos/pub_sub_hubbub/unsubscribe_service_spec.rb