Skip to content
Browse files

Update test/tests.js

The test harness was not working with the most recent
tagged version of hubot.  This fixes that.
  • Loading branch information...
1 parent 7a53b44 commit 2c8107fe037bc3d07c08fcc40a7eefbe9b1e9b97 @markstory markstory committed Nov 9, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/tests.coffee
View
5 test/tests.coffee
@@ -24,12 +24,13 @@ exports.danger = (helper, cb) ->
server.close() if tests.length == 0
cb()
+ server.on 'close', -> helper.close()
server
class Helper extends Robot
constructor: (path) ->
- super path
+ super false, 'helper'
@sent = []
@Response = Helper.Response
@@ -45,7 +46,7 @@ class Helper extends Robot
# modified to accept a string and pass the Robot.Message to super()
receive: (text) ->
user = new Robot.User 1, 'helper'
- super new Robot.Message(user, text)
+ super new Robot.TextMessage(user, text)
class Helper.Response extends Robot.Response
http: (url) ->

0 comments on commit 2c8107f

Please sign in to comment.
Something went wrong with that request. Please try again.