summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorZack Hobson2013-12-26 16:34:38 -0800
committerZack Hobson2013-12-26 16:38:11 -0800
commit3dc60c4b324b58f5f3539842038fc9238ba29d47 (patch)
tree2e4f1bffdf8c0e25d6b8387dd0272bc198f272bb /test/test_helper.rb
parent5662c7eb3ddba718c2dd18b5831af3eab23d93e1 (diff)
downloadhcl-3dc60c4b324b58f5f3539842038fc9238ba29d47.tar.bz2
task: more test coverage
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb15
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
+