Sha256: 8c86ae12a2b46fb415709162676496fbbb96c3560212f6592137b7b61354e821

Contents?: true

Size: 747 Bytes

Versions: 1

Compression:

Stored size: 747 Bytes

Contents

module FileWorld
  def bin_path
    File.expand_path(File.join(File.dirname(__FILE__),
                               "..",
                               ".."))
  end

  def git_project_path
    f = File.expand_path(File.join(File.dirname(__FILE__),
                                 "..",
                                 "..",
                                 "spec",
                                 "fixtures",
                                 "with_git"))
    Pathname.new(f)
  end

  def hooks_path(type)
    path = git_project_path.join(".git",
                                 "hooks",
                                 type)
    path
  end

  def hook_config_file_path
    git_project_path.join('hoogfile.yml')
  end
end

World(FileWorld)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
captain_hoog-1.0 features/support/world.rb