hubot-esv
Version:
Simple ESV passage lookup based on api.esv.org
28 lines (21 loc) • 625 B
text/coffeescript
Helper = require('hubot-test-helper')
chai = require 'chai'
expect = chai.expect
helper = new Helper('../src/esv.coffee')
describe 'esv', ->
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']
]