Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.552 kB
require "lib/script_environment"
require "minitest/autorun"
require "scope"
# The fixtures directory contains test git repos. Use when you cannot stub a fake Git repo.
FIXTURES_PATH ||= File.join(File.dirname(__FILE__), "/fixtures")
TEST_REPO_NAME ||= "test_git_repo"
# A helper method to allow stubbing out multiple properties (to static values) at once by passing in the
# object and a hash of { <method name symbol>, <value> }.
def stub_many(object, stubs)
stubs.each { |name, value| stub(object).method_missing(name, &Proc.new { value }) }
end
Jump to Line
Something went wrong with that request. Please try again.