Skip to content
Extraits de code Groupes Projets
Valider 3d616939 rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

add another dispatcher spec

parent eeb01f4e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -276,6 +276,12 @@ describe Postzord::Dispatcher do ...@@ -276,6 +276,12 @@ describe Postzord::Dispatcher do
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => false))) f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => false)))
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
end end
it 'returns false for a relayable_retraction' do
f = RelayableRetraction.new
f.target = Factory(:status_message, :public => true)
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
end
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