Added path function to PrefixedCommandRunner

This commit is contained in:
Anthony Sottile 2014-03-29 15:47:29 -07:00
parent bd6e62e28d
commit 6f0d566199
4 changed files with 44 additions and 12 deletions

View file

@ -59,3 +59,9 @@ def test_pre_commit_path():
runner = Runner('foo/bar')
expected_path = os.path.join('foo/bar', '.git/hooks/pre-commit')
assert runner.pre_commit_path == expected_path
def test_workspace_runneR():
runner = Runner('foo/bar')
ret = runner.workspace_runner
assert ret.prefix_dir == C.HOOKS_WORKSPACE + '/'