Sha256: f95cca627e39b240b49266728cdd91d9235bcfd60cabf874bef21a137c6aaf50

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../test_helper'

class TestGitPath < Test::Unit::TestCase
  
  def setup
    set_file_paths
    @git = Git.open(@wdir)
  end

  def test_readables
    assert(@git.dir.readable?)
    assert(@git.index.readable?)
    assert(@git.repo.readable?)
  end
  
  def test_readables
    in_temp_dir do |dir|
      FileUtils.cp_r(@wdir, 'test')
      g = Git.open(File.join(dir, 'test'))
      
      assert(g.dir.writable?)
      assert(g.index.writable?)
      assert(g.repo.writable?)
    end
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
git-1.0.1 tests/units/test_git_path.rb
git-1.0.2 tests/units/test_git_path.rb
git-1.0.3 tests/units/test_git_path.rb
git-1.0.4 tests/units/test_git_path.rb
git-1.0.5 tests/units/test_git_path.rb