Skip to content
Extraits de code Groupes Projets
Valider 1c9a96e2 rédigé par Manuel's avatar Manuel
Parcourir les fichiers

Fixed relayable specs

parent c7f19eb5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -95,7 +95,7 @@ describe ConversationsController do ...@@ -95,7 +95,7 @@ describe ConversationsController do
) )
p = Postzord::Dispatcher.build(alice, cnv) p = Postzord::Dispatcher.build(alice, cnv)
Postzord::Dispatcher.stub!(:new).and_return(p) p.class.stub!(:new).and_return(p)
p.should_receive(:post) p.should_receive(:post)
post :create, @hash post :create, @hash
end end
......
...@@ -3,7 +3,6 @@ require 'spec_helper' ...@@ -3,7 +3,6 @@ require 'spec_helper'
describe "Dispatching" do describe "Dispatching" do
context "a comment retraction on a public post" do context "a comment retraction on a public post" do
it "should trigger a private dispatch" 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, leia, raph = set_up_friends
# Luke has a public post and comments on it # Luke has a public post and comments on it
......
...@@ -57,7 +57,7 @@ describe Diaspora::Relayable do ...@@ -57,7 +57,7 @@ describe Diaspora::Relayable do
it 'dispatches when the person receiving is the parent author' do it 'dispatches when the person receiving is the parent author' do
p = Postzord::Dispatcher.build(@local_luke, @object_by_recipient) p = Postzord::Dispatcher.build(@local_luke, @object_by_recipient)
p.should_receive(:post) 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) @object_by_recipient.receive(@local_luke, @local_leia.person)
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter