Skip to content

Instantly share code, notes, and snippets.

@koyachi
Created May 29, 2012 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koyachi/2821911 to your computer and use it in GitHub Desktop.
Save koyachi/2821911 to your computer and use it in GitHub Desktop.
hubot-scripts-for-trac/_tmp/test.coffee
# tests for hubot-scripts-for-trac
#
# 2012-05-29 koyachi
trac = require '../scripts/trac'
matched = 0
dummyRobot = {
hear: (re, f) ->
if matched == 1
return
console.log "----------------------------"
console.log "dummyRobot.hear(#{re}, #{f})"
dummyMsg ={
send: (msg) ->
console.log "THIS IS DUMMY MSG(#{msg})"
match: ["hoge #811"]
}
f dummyMsg
matched = 1
}
trac dummyRobot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment