Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 33e3e3a1 rédigé par Benjamin Neff's avatar Benjamin Neff
Parcourir les fichiers

Fix person spec, use `first(15)` instead of `slice(0..14)`

parent f4136d45
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -32,7 +32,7 @@ describe Stream::Person do ...@@ -32,7 +32,7 @@ describe Stream::Person do
end end
posts = posts.reverse.slice(0..14) posts = posts.reverse.slice(0..14)
fetched_posts = fetched_posts.slice(0..14) fetched_posts = fetched_posts.first(15)
expect(fetched_posts).to eq(posts) expect(fetched_posts).to eq(posts)
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