diff options
Diffstat (limited to 'test/test_helper.rb')
| -rw-r--r-- | test/test_helper.rb | 15 | 
1 files changed, 14 insertions, 1 deletions
| diff --git a/test/test_helper.rb b/test/test_helper.rb index 9067d91..98c0b35 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -31,5 +31,18 @@ require 'fakeweb'  # require test extensions/helpers  Dir[File.dirname(__FILE__) + '/ext/*.rb'].each { |ext| require ext } -class HCl::TestCase < MiniTest::Unit::TestCase; end +class HCl::TestCase < MiniTest::Unit::TestCase +  def setup +    FakeWeb.allow_net_connect = false +    HCl::Net.configure \ +      'login' => 'bob', +      'password' => 'secret', +      'subdomain' => 'bobclock', +      'ssl' => true +  end +  def teardown +    FakeWeb.clean_registry +  end +end + | 
