hubot-gamestatus
Version:
Show detail information about game server.
20 lines (14 loc) • 442 B
text/coffeescript
chai = require 'chai'
sinon = require 'sinon'
chai.use require 'sinon-chai'
expect = chai.expect
describe 'gamestatus', ->
beforeEach ->
@robot =
respond: sinon.spy()
hear: sinon.spy()
require('../src/gamestatus')(@robot)
it 'registers a respond listener', ->
expect(@robot.respond).to.have.been.calledWith(/hello/)
it 'registers a hear listener', ->
expect(@robot.hear).to.have.been.calledWith(/orly/)