aboutsummaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb20
1 files changed, 15 insertions, 5 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 2e33705..e761086 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,9 +1,19 @@
-require 'test/unit'
+$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
+require 'rubygems'
+require 'minitest/autorun'
+require 'leap_cli'
-# Add test libraries you want to use here, e.g. mocha
-
-class Test::Unit::TestCase
+class MiniTest::Unit::TestCase
# Add global extensions to the test case class here
-
+
+ def manager
+ @manager ||= begin
+ LeapCli::Path.set_root(File.dirname(__FILE__))
+ manager = LeapCli::Config::Manager.new
+ manager.load
+ manager
+ end
+ end
+
end