Sha256: 2931478485e20bd52ce41d96844e4e4135958319c42bb586499ddcd3f6cdb9ca
Contents?: true
Size: 738 Bytes
Versions: 4
Compression:
Stored size: 738 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Github::Client::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
4 entries across 4 versions & 1 rubygems