Allow running tests with alternative adapter
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user