hubot-leanengine-script
Version:
A hubot script that make hubot runs on LeanEngine
28 lines (21 loc) • 653 B
text/coffeescript
Helper = require('hubot-test-helper')
chai = require 'chai'
expect = chai.expect
helper = new Helper('../src/leanengine-script.coffee')
describe 'leanengine-script', ->
beforeEach ->
= helper.createRoom()
afterEach ->
.destroy()
it 'responds to hello', ->
.user.say('alice', '@hubot hello').then =>
expect(.messages).to.eql [
['alice', '@hubot hello']
['hubot', '@alice hello!']
]
it 'hears orly', ->
.user.say('bob', 'just wanted to say orly').then =>
expect(.messages).to.eql [
['bob', 'just wanted to say orly']
['hubot', 'yarly']
]