Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.6.6
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.42 kB
require 'rubygems'
require 'spec'
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
require 'rush'
def mock_config(&block)
mock_config_start
block.call(config)
mock_config_end
end
def mock_config_sandbox_dir
"/tmp/fake_config.#{Process.pid}"
end
def mock_config_start
mock_config_cleanup
Rush::Config.new(mock_config_sandbox_dir)
end
def mock_config_cleanup
FileUtils.rm_rf(mock_config_sandbox_dir)
end
Jump to Line
Something went wrong with that request. Please try again.