This commit is contained in:
Sam 2017-08-24 13:24:52 -04:00
parent f60a1b0275
commit bcbee91f0c
1 changed files with 1 additions and 1 deletions

View File

@ -1404,7 +1404,7 @@ describe User do
let(:user) { Fabricate(:user) } let(:user) { Fabricate(:user) }
it 'should publish the right message' do it 'should publish the right message' do
message = MessageBus.track_publish { user.logged_out }.find { |m| m.channel == '/logout'} message = MessageBus.track_publish { user.logged_out }.find { |m| m.channel == '/logout' }
expect(message.channel).to eq('/logout') expect(message.channel).to eq('/logout')
expect(message.data).to eq(user.id) expect(message.data).to eq(user.id)