summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-12-14 16:17:14 -0800
committerelijah <elijah@riseup.net>2014-12-14 16:17:14 -0800
commit92db2c6e6210a860a4de4baf8033428fbe72b7cc (patch)
tree19cb97b35ed094d1a5f844cc4cebdf56dfed91e2 /test/test_helper.rb
parent0eedbfa5ce7a8ed4799408b591e655070336f0cc (diff)
added TapiceroProcess, to handle starting and stopping tapicero during tests.
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 4fe81df..ec42f41 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -12,6 +12,10 @@ begin
rescue LoadError
end
+unless defined? DEBUG
+ DEBUG = ENV["DEBUG"]
+end
+
$:.unshift BASE_DIR + 'lib'
require 'mocha/setup'
@@ -22,3 +26,10 @@ Tapicero::RERAISE = true
require 'tapicero'
require_relative 'support/integration_test'
+
+require_relative 'support/tapicero_process'
+TapiceroProcess.kill!
+MiniTest.after_run {
+ TapiceroProcess.kill!
+}
+