Skip to content
Extraits de code Groupes Projets
Valider 9829f114 rédigé par MrZYX's avatar MrZYX
Parcourir les fichiers

fixed posting spec

parent bdff036c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -28,8 +28,8 @@ describe User do ...@@ -28,8 +28,8 @@ describe User do
it 'saves post into visible post ids' do it 'saves post into visible post ids' do
proc { proc {
user.add_to_streams(@post, @aspects) user.add_to_streams(@post, @aspects)
}.should change{user.raw_visible_posts.all.length}.by(1) }.should change{user.raw_visible_posts(:by_members_of => @aspects).length}.by(1)
user.reload.raw_visible_posts.should include @post user.raw_visible_posts(:by_members_of => @aspects).should include @post
end end
it 'saves post into each aspect in aspect_ids' do it 'saves post into each aspect in aspect_ids' do
......
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