From f02ed1e3c48efa15db1a644fe7772a04faaa91f6 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 6 Jan 2011 12:19:36 -0800 Subject: [PATCH] unstubing and restubbing before doing pubsubhubub --- spec/lib/pubsubhubbub_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/lib/pubsubhubbub_spec.rb b/spec/lib/pubsubhubbub_spec.rb index fadf9b445..1a915266d 100644 --- a/spec/lib/pubsubhubbub_spec.rb +++ b/spec/lib/pubsubhubbub_spec.rb @@ -5,6 +5,15 @@ require 'spec_helper' describe PubSubHubbub do + before :all do + RestClient.unstub!(:post) + end + + after :all do + + RestClient.stub!(:post).and_return(FakeHttpRequest.new(:success)) + end + describe '#initialize' do end