stubbing the httpmulti in the test, now you can post to services individually
This commit is contained in:
parent
c27e2de478
commit
83576d75ef
1 changed files with 1 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ describe Postzord::Dispatch do
|
|||
mailman = Postzord::Dispatch.new(@user, Factory(:status_message))
|
||||
|
||||
Resque.stub!(:enqueue).with(Job::PublishToHub, anything)
|
||||
Resque.stub!(:enqueue).with(Job::HttpMulti, anything, anything, anything)
|
||||
Resque.should_receive(:enqueue).with(Job::PostToService, @s1.id, anything, anything)
|
||||
mailman.post(:url => "http://joindiaspora.com/p/123", :services => [@s1])
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue