diff options
author | Azul <azul@riseup.net> | 2014-02-04 15:47:55 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-02-04 16:20:12 +0100 |
commit | 7bb4ab417c0275fcca03abe338b3b81c17b17a6e (patch) | |
tree | 5b6db1de8c82b57114f76372857d50ab111f9ca1 /test/test_helper.rb | |
parent | 5cd3df1a9be8e7db2f3e364fd730ed78c8d0e49f (diff) |
prevent 409s and 412 and reraise them in tests
Including tests that ensure this
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index da8b88c..5a3b509 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,13 +1,18 @@ require 'rubygems' require 'minitest/autorun' +require 'pathname' -BASE_DIR = File.expand_path('../..', __FILE__) -$:.unshift File.expand_path('lib', BASE_DIR) +unless defined? BASE_DIR + BASE_DIR = Pathname.new(__FILE__) + '../..' +end + +$:.unshift BASE_DIR + 'lib' require 'mocha/setup' require 'tapicero/version' Tapicero::CONFIGS << "test/config.yaml" +Tapicero::RERAISE = true require 'tapicero' |