Fixed relayable specs

This commit is contained in:
Manuel 2011-11-20 01:06:45 +01:00
parent c7f19eb592
commit 1c9a96e2aa
3 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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