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

This commit is contained in:
Benjamin Neff 2017-08-06 22:56:18 +02:00
parent f4136d4559
commit 33e3e3a14d
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -32,7 +32,7 @@ describe Stream::Person do
end
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)
end