diff options
author | elijah <elijah@riseup.net> | 2014-12-14 16:17:14 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-12-14 16:17:14 -0800 |
commit | 92db2c6e6210a860a4de4baf8033428fbe72b7cc (patch) | |
tree | 19cb97b35ed094d1a5f844cc4cebdf56dfed91e2 /test/test_helper.rb | |
parent | 0eedbfa5ce7a8ed4799408b591e655070336f0cc (diff) |
added TapiceroProcess, to handle starting and stopping tapicero during tests.
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 11 |
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! +} + |