Commit 81a67f75 authored by Job van der Voort's avatar Job van der Voort

use abort isntead of raise when checking path

parent 91753e93
......@@ -93,7 +93,7 @@ class GitlabShell
if File.absolute_path(full_repo_path) == full_repo_path
path
else
raise "Wrong repository path"
abort "Wrong repository path"
end
end
end
......@@ -167,7 +167,7 @@ describe GitlabShell do
before { File.stub(:absolute_path) { 'y' } }
subject { -> { shell.send(:escape_path, 'z') } }
it { should raise_error(RuntimeError, "Wrong repository path") }
it { should raise_error(SystemExit, "Wrong repository path") }
end
def ssh_cmd(cmd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment