Fix person spec, use first(15) instead of slice(0..14)
This commit is contained in:
parent
f4136d4559
commit
33e3e3a14d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue