Files
hubot-hobbsbrook-cafe/test/hobbsbrook-cafe-test.coffee
Tommy Parnell 2c7ab9c99c init
2015-10-01 09:10:47 -04:00

20 lines
452 B
CoffeeScript

chai = require 'chai'
sinon = require 'sinon'
chai.use require 'sinon-chai'
expect = chai.expect
describe 'hobbsbrook-cafe', ->
beforeEach ->
@robot =
respond: sinon.spy()
hear: sinon.spy()
require('../src/hobbsbrook-cafe')(@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/)