From cce871c30e5707e64f0bc7aad8b5153e841906a2 Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Mon, 8 Dec 2014 01:44:01 +0100 Subject: [PATCH] Allow running tests with alternative adapter --- test/helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/helper.rb b/test/helper.rb index 91f09d06..d4dd54ac 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -17,6 +17,10 @@ dir = File.dirname(File.expand_path(__FILE__)) $LOAD_PATH.unshift(File.join(dir, '..', 'lib')) $LOAD_PATH.unshift(dir) +module Gollum +end +Gollum::GIT_ADAPTER = ENV['GIT_ADAPTER'] if ENV['GIT_ADAPTER'] + ENV['RACK_ENV'] = 'test' require 'gollum' require 'gollum/app'