mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
DEV: fixes failing spec (#20191)
Broken in #25f2fb61b829edb7d60499c80648e06cca71fdbf
This commit is contained in:
parent
676d5fadab
commit
19ff8210bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user