From da7b53acf41001fd72be4998e4083066e11af543 Mon Sep 17 00:00:00 2001 From: taitus Date: Tue, 5 Sep 2017 13:30:45 +0200 Subject: [PATCH] Refactor spec. --- spec/models/community_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/models/community_spec.rb b/spec/models/community_spec.rb index 0b8bddfe7..005d0824d 100644 --- a/spec/models/community_spec.rb +++ b/spec/models/community_spec.rb @@ -21,7 +21,9 @@ RSpec.describe Community, type: :model do create(:comment, commentable: topic1, author: user2) topic2 = create(:topic, community: community, author: user2) - expect(community.participants).to eq [user1, user2, proposal.author] + expect(community.participants).to include(user1) + expect(community.participants).to include(user2) + expect(community.participants).to include(proposal.author) end end end