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

Version Path
engineyard-1.2.1 spec/support/git_repo.rb
engineyard-1.2.0 spec/support/git_repo.rb
engineyard-1.1.3 spec/support/git_repo.rb
engineyard-1.1.2 spec/support/git_repo.rb
engineyard-1.1.1 spec/support/git_repo.rb
engineyard-1.1.0 spec/support/git_repo.rb
engineyard-1.0.2 spec/support/git_repo.rb
engineyard-1.0.1 spec/support/git_repo.rb
engineyard-1.0.0 spec/support/git_repo.rb
engineyard-0.10.0 spec/support/git_repo.rb
engineyard-0.9.0 spec/support/git_repo.rb
engineyard-0.8.2 spec/support/git_repo.rb
engineyard-0.8.1 spec/support/git_repo.rb
engineyard-0.8.0 spec/support/git_repo.rb
engineyard-0.7.1 spec/support/git_repo.rb
engineyard-0.7.0 spec/support/git_repo.rb
engineyard-0.5.5 spec/support/git_repo.rb
engineyard-0.5.4 spec/support/git_repo.rb