Fix dispatcher_spec to depend on Tumblr which isn't retracting

This commit is contained in:
Ruxton 2013-04-29 22:30:40 +08:00
parent ba0e2509c9
commit 20c38a0489

View file

@ -321,7 +321,7 @@ describe Postzord::Dispatcher do
it "doesn't queue a job if we can't delete the post from the service" do
retraction = SignedRetraction.build(alice, FactoryGirl.create(:status_message))
service = Services::Twitter.new(access_token: "nope")
service = Services::Tumblr.new(access_token: "nope")
mailman = Postzord::Dispatcher.build(alice, retraction, :url => "http://joindiaspora.com/p/123", :services => [service])
Workers::DeletePostFromService.should_not_receive(:perform_async).with(anything, anything)