DEV: Update user-status test to assert message-bus channels (#20068)
This test appears to be flaky. This assertion should help us track down the reason.
This commit is contained in:
parent
9a196ced08
commit
fa7f8d8e1b
|
@ -162,7 +162,7 @@ RSpec.describe UserStatusController do
|
||||||
put "/user-status.json", params: { description: status, emoji: emoji, ends_at: ends_at }
|
put "/user-status.json", params: { description: status, emoji: emoji, ends_at: ends_at }
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(messages.size).to eq(1)
|
expect(messages.map(&:channel)).to contain_exactly("/user-status")
|
||||||
expect(messages[0].channel).to eq("/user-status")
|
expect(messages[0].channel).to eq("/user-status")
|
||||||
expect(messages[0].group_ids).to eq([Group::AUTO_GROUPS[:trust_level_0]])
|
expect(messages[0].group_ids).to eq([Group::AUTO_GROUPS[:trust_level_0]])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue