UNPKG

hubot-shakespearean-insults

Version:
19 lines (13 loc) 415 B
Helper = require('hubot-test-helper') chai = require 'chai' expect = chai.expect helper = new Helper('../src/insults.coffee') describe 'insults', -> beforeEach -> @room = helper.createRoom(httpd: false) it 'should say an insult', -> @room.user.say('alice', 'hubot insult me').then => expect(@room.messages).to.eql [ ['alice', 'hubot insult me'] ['hubot', "@alice .*"] ]