Skip to content
Extraits de code Groupes Projets
Valider 047217f5 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

fixed test to have postzord only socket on comments.... need to figure out a...

fixed test to have postzord only socket on comments.... need to figure out a better way to abstract this exception...
parent 36d6864b
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -75,9 +75,12 @@ describe Postzord::Dispatch do ...@@ -75,9 +75,12 @@ describe Postzord::Dispatch do
@zord.post @zord.post
end end
it 'calls socket_to_users with the local users' do it 'calls socket_to_users with the local users if the object is a comment' do
@zord.should_receive(:socket_to_users).with([@local_user]) comment = @local_user.comment "yo", :on => Factory(:status_message)
@zord.post comment.should_receive(:subscribers).and_return([@local_user])
mailman = Postzord::Dispatch.new(@user, comment)
mailman.should_receive(:socket_to_users)
mailman.post
end end
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter