Fixed relayable specs
This commit is contained in:
parent
c7f19eb592
commit
1c9a96e2aa
3 changed files with 2 additions and 3 deletions
|
|
@ -95,7 +95,7 @@ describe ConversationsController do
|
|||
)
|
||||
|
||||
p = Postzord::Dispatcher.build(alice, cnv)
|
||||
Postzord::Dispatcher.stub!(:new).and_return(p)
|
||||
p.class.stub!(:new).and_return(p)
|
||||
p.should_receive(:post)
|
||||
post :create, @hash
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ require 'spec_helper'
|
|||
describe "Dispatching" do
|
||||
context "a comment retraction on a public post" do
|
||||
it "should trigger a private dispatch" do
|
||||
pending "Running this causes test failures in the relayable specs. If you can figure out why, you'll be OUR HERO. <3 <3"
|
||||
luke, leia, raph = set_up_friends
|
||||
|
||||
# Luke has a public post and comments on it
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ describe Diaspora::Relayable do
|
|||
it 'dispatches when the person receiving is the parent author' do
|
||||
p = Postzord::Dispatcher.build(@local_luke, @object_by_recipient)
|
||||
p.should_receive(:post)
|
||||
Postzord::Dispatcher.stub!(:new).and_return(p)
|
||||
p.class.stub!(:new).and_return(p)
|
||||
@object_by_recipient.receive(@local_luke, @local_leia.person)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue