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