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