mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
correct erratic spec
This commit is contained in:
parent
512858c2e7
commit
f60a1b0275
@ -1404,7 +1404,7 @@ describe User do
|
||||
let(:user) { Fabricate(:user) }
|
||||
|
||||
it 'should publish the right message' do
|
||||
message = MessageBus.track_publish { user.logged_out }.first
|
||||
message = MessageBus.track_publish { user.logged_out }.find { |m| m.channel == '/logout'}
|
||||
|
||||
expect(message.channel).to eq('/logout')
|
||||
expect(message.data).to eq(user.id)
|
||||
|
Loading…
Reference in New Issue
Block a user