Resolves cwd problem

This commit is contained in:
Anthony Sottile 2014-03-29 23:23:43 -07:00
parent 6f0d566199
commit 216b5c6ab1
13 changed files with 212 additions and 107 deletions

View file

@ -61,7 +61,7 @@ def test_pre_commit_path():
assert runner.pre_commit_path == expected_path
def test_workspace_runneR():
def test_cmd_runner():
runner = Runner('foo/bar')
ret = runner.workspace_runner
assert ret.prefix_dir == C.HOOKS_WORKSPACE + '/'
ret = runner.cmd_runner
assert ret.prefix_dir == os.path.join('foo/bar', C.HOOKS_WORKSPACE) + '/'