summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorJob van der Voort <jobvandervoort@gmail.com>2014-08-27 12:13:56 +0200
committerJob van der Voort <jobvandervoort@gmail.com>2014-08-27 12:13:56 +0200
commit81a67f7533a9999a404a03c8c259b3233a2b8c40 (patch)
tree48e98dec650ca396c094fde873087d18011fc0e9 /spec/gitlab_shell_spec.rb
parent91753e937e729c0fedc9a5dd7ae52b85436b4971 (diff)
downloadgitlab-shell-81a67f7533a9999a404a03c8c259b3233a2b8c40.tar.gz
use abort isntead of raise when checking path
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb2
1 files changed, 1 insertions, 1 deletions
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)