Module: Avm::Git::SpecHelper

Defined in:
lib/avm/git/spec_helper.rb

Defined Under Namespace

Classes: StubbedGitRepository, StubbedGitRepositoryFile

Instance Method Summary collapse

Instance Method Details

#stubbed_git_repository(bare = false) ⇒ Object



11
12
13
14
15
# File 'lib/avm/git/spec_helper.rb', line 11

def stubbed_git_repository(bare = false)
  path = ::Dir.mktmpdir
  ::EacRubyUtils::Envs.local.command(stubbed_git_repository_args(path, bare)).execute!
  StubbedGitRepository.new(path)
end