Sha256: adf202807885d892014f808b5c7ddd55f729dbab9c700cd458ae5a22b37f03c4

Contents?: true

Size: 731 Bytes

Versions: 14

Compression:

Stored size: 731 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Repos::PubSubHubbub, '#subscribe_service' do
  let(:topic)  { "https://github.com/peter-murach/github/events/push"}
  let(:callback) { "github://campfire?subdomain=github&room=Commits" }
  let(:user) { 'peter-murach' }
  let(:repo) { 'github' }
  let(:service) { 'campfire' }
  let(:options) {
    {
      :subdomain => 'github',
      :room => 'Commits'
    }
  }

  after { reset_authentication_for subject }

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

  it "subscribes to service" do
    subject.should_receive(:subscribe).with(topic, callback)
    subject.subscribe_service user, repo, service, options
  end

end # subscribe_service

Version data entries

14 entries across 14 versions & 1 rubygems

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