diff --git a/spec/services/comment_service_spec.rb b/spec/services/comment_service_spec.rb index d6b24cfb7..7717f4561 100644 --- a/spec/services/comment_service_spec.rb +++ b/spec/services/comment_service_spec.rb @@ -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