use match_array for comment_service_spec
This commit is contained in:
parent
5bed75b661
commit
5e0b1dd28d
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ describe CommentService do
|
|||
post = alice.post(:status_message, text: "hello", public: true)
|
||||
comments = [alice, bob, eve].map {|user| CommentService.new(user).create(post.id, "hi") }
|
||||
|
||||
expect(CommentService.new.find_for_post(post.id)).to eq(comments)
|
||||
expect(CommentService.new.find_for_post(post.id)).to match_array(comments)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue