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

add the opposite test, fix a typo in my previous test declaration

parent 1343188c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -267,10 +267,15 @@ describe Postzord::Dispatcher do
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
end
it 'returns true with a like on a comment on a private post' do
it 'returns true with a like on a comment on a public post' do
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => true)))
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_true
end
it 'returns false with a like on a comment on a private post' do
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => false)))
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
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