A platform for community discussion. Free, open, simple.
DEV: Fix flaky topics invite spec due to id collision.
Alan Guo Xiang Tan1780961e70ca
diff --git a/spec/requests/topics_controller_spec.rb b/spec/requests/topics_controller_spec.rbindex 2c03389c5da..d81b0ed8d37 100644--- a/spec/requests/topics_controller_spec.rb+++ b/spec/requests/topics_controller_spec.rb@@ -3651,11 +3651,11 @@ RSpec.describe TopicsController doit "should attach group to the invite" dopost "/t/#{group_private_topic.id}/invite.json", params: {user: recipient,- group_ids: "#{group.id},123"+ group_ids: "#{group.id},9999999"}expect(response.status).to eq(200)- expect(Invite.find_by(email: recipient).groups).to eq([group])+ expect(Invite.find_by(email: recipient).groups).to contain_exactly(group)enddescribe 'when group is available to automatic groups only' do