diff options
author | Job van der Voort <jobvandervoort@gmail.com> | 2014-08-27 12:13:56 +0200 |
---|---|---|
committer | Job van der Voort <jobvandervoort@gmail.com> | 2014-08-27 12:13:56 +0200 |
commit | 81a67f7533a9999a404a03c8c259b3233a2b8c40 (patch) | |
tree | 48e98dec650ca396c094fde873087d18011fc0e9 /spec/gitlab_shell_spec.rb | |
parent | 91753e937e729c0fedc9a5dd7ae52b85436b4971 (diff) | |
download | gitlab-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.rb | 2 |
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) |