diff options
Diffstat (limited to 'test/test_helper.rb')
| -rw-r--r-- | test/test_helper.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/test/test_helper.rb b/test/test_helper.rb index e8c1657..47d3517 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -36,6 +36,12 @@ class HCl::TestCase < MiniTest::Unit::TestCase        'subdomain' => 'bobclock',        'ssl' => true    end + +  def register_uri method, path, data={} +    FakeWeb.register_uri(method, "https://bob:secret@bobclock.harvestapp.com#{path}", +                         body: Yajl::Encoder.encode(data)) +  end +    def teardown      FakeWeb.clean_registry    end | 
