correct erratic spec

This commit is contained in:
Sam 2017-08-24 13:18:37 -04:00
parent 512858c2e7
commit f60a1b0275

View File

@ -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)