Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

only mock the Helper http connection if HUBOT_LIVE env var is unset

  • Loading branch information...
commit 5294d42d567adf7c1626dba29cf03773bbd15573 1 parent 9844090
risk danger olson technoweenie authored

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 test/tests.coffee
9 test/tests.coffee
@@ -49,8 +49,9 @@ class Helper extends Robot
49 49 user = new Robot.User 1, 'helper'
50 50 super new Robot.TextMessage(user, text)
51 51
52   -class Helper.Response extends Robot.Response
53   - # This changes ever HTTP request to hit the danger server above
54   - http: (url) ->
55   - super(url).host('127.0.0.1').port(9001)
  52 +if not process.env.HUBOT_LIVE
  53 + class Helper.Response extends Robot.Response
  54 + # This changes ever HTTP request to hit the danger server above
  55 + http: (url) ->
  56 + super(url).host('127.0.0.1').port(9001)
56 57

0 comments on commit 5294d42

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