Skip to content

Commit

Permalink
Provide reset() on helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Young committed Nov 23, 2011
1 parent 08c0e5e commit 1767ce8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/rules_test.coffee
Expand Up @@ -10,7 +10,7 @@ tests = [
]

until tests.length == 0
helper.sent = []
helper.reset()
test = tests.shift()
test(helper)

Expand Down
3 changes: 3 additions & 0 deletions test/tests.coffee
Expand Up @@ -44,6 +44,9 @@ class Helper extends Robot
stop: ->
process.exit 0

reset: ->
@sent = []

class Danger extends Adapter
send: (user, strings...) ->
@robot.sent.push str for str in strings
Expand Down

0 comments on commit 1767ce8

Please sign in to comment.