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