UNPKG

549 Btext/coffeescriptView Raw
1chai = require 'chai'
2sinon = require 'sinon'
3chai.use require 'sinon-chai'
4
5expect = chai.expect
6
7describe 'No idea:', ->
8 businesscat_module = require('../src/ihavenoidea')
9
10 beforeEach ->
11 @robot =
12 respond: sinon.spy()
13 hear: sinon.spy()
14 @msg =
15 send: sinon.spy()
16 random: sinon.spy()
17 @businesscat_module = businesscat_module(@robot)
18
19 describe 'i have no idea what i\'m doing', ->
20
21 it 'should register a hear listener', ->
22 expect(@robot.hear).to.have.been.calledWith(/i have no idea what i'm doing/)