diff options
-rw-r--r-- | lib/gitlab_shell.rb | 2 | ||||
-rw-r--r-- | spec/gitlab_shell_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 086e36b..6edb748 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -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 diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index 6a00638..f997477 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -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) |