Commit 5e0b1dd2 authored by Benjamin Neff's avatar Benjamin Neff

use `match_array` for comment_service_spec

parent 5bed75b6
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment