use match_array for comment_service_spec

This commit is contained in:
Benjamin Neff 2016-06-26 10:43:27 +02:00
parent 5bed75b661
commit 5e0b1dd28d

View file

@ -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