DEV: fixes failing spec (#20191)

Broken in #25f2fb61b829edb7d60499c80648e06cca71fdbf
This commit is contained in:
Joffrey JAFFEUX
2023-02-07 09:53:29 +01:00
committed by GitHub
parent 676d5fadab
commit 19ff8210bc

View File

@ -576,8 +576,7 @@ RSpec.describe Chat::ChatController do
end.to change { ChatMessage.count }.by(-1)
expect(response.status).to eq(200)
expect(events.size).to eq(1)
expect(events.first[:event_name]).to eq(:chat_message_trashed)
expect(events.map { |event| event[:event_name] }).to include(:chat_message_trashed)
end
it "does not allow message delete when chat channel is read_only" do