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