hubot-puppet-utils
Version:
Hubot scripts for interacting with your Puppet infrastructure
28 lines (21 loc) • 655 B
text/coffeescript
Helper = require('hubot-test-helper')
chai = require 'chai'
expect = chai.expect
helper = new Helper('../src/hubot-puppet-utils.coffee')
describe 'hubot-puppet-utils', ->
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']
]