1 | chai = require 'chai'
|
2 | sinon = require 'sinon'
|
3 | chai.use require 'sinon-chai'
|
4 |
|
5 | expect = chai.expect
|
6 |
|
7 | describe '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/)
|