Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed Jul 2, 2014
1 parent 74296b1 commit 8a43755
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tabelog_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,14 @@ describe 'tabelog', ->
done e
adapter.receive new TextMessage(user, "hubot tabelog lunch")

it 'replies tabelog dinner', (done)->
adapter.on "send", (envelope, strings)->
try
expect(strings).to.have.length(2)
expect(strings[0]).to.match /^http:\/\/.*\.jpg/
expect(strings[1]).to.match /tabelog.com/
do done
catch e
done e
adapter.receive new TextMessage(user, "hubot tabelog dinner")

0 comments on commit 8a43755

Please sign in to comment.