Sha256: bc63473334b5738950280348bc136b40db48e35e7c98225080b5c1cd0fd9540c
Contents?: true
Size: 595 Bytes
Versions: 18
Compression:
Stored size: 595 Bytes
Contents
module Spec module GitRepo def define_git_repo(name, &setup) # EY's ivars don't get cleared between examples, so we can keep # a git repo around longer (and thus make our tests faster) FakeFS.without { EY.define_git_repo(name, &setup) } end def use_git_repo(repo_name) before(:all) do FakeFS.without do @_original_wd ||= [] @_original_wd << Dir.getwd Dir.chdir(EY.git_repo_dir(repo_name)) end end after(:all) do FakeFS.without { Dir.chdir(@_original_wd.pop) } end end end end
Version data entries
18 entries across 18 versions & 1 rubygems