diff options
| author | Zack Hobson | 2013-12-26 17:11:34 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-12-26 17:11:34 -0800 | 
| commit | 087da79f8c4135acc19a71822295c328c0d57a5a (patch) | |
| tree | fcc625a0f38ea992be92288996a24ab10274f8ba /test/test_helper.rb | |
| parent | ee5c39963760ba3883189266aa4544ef0e838129 (diff) | |
| download | hcl-087da79f8c4135acc19a71822295c328c0d57a5a.tar.bz2 | |
test_helper: fakeweb test helper
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 | 
