summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-06 12:30:21 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-06 13:08:51 +0200
commitf64e5d4a075479846f2e18bb34b84eb26d180f57 (patch)
tree436f8840ecdd060f20d282bd7165fa4765c277fa /spec/gitlab_shell_spec.rb
parent8f0f67622971d1861769a9deac6b102c9fdaed42 (diff)
downloadgitlab-shell-nice-error-message.tar.gz
Write GitlabShell error to stderr.nice-error-message
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 5abeeb9..6bb4db4 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -241,7 +241,7 @@ describe GitlabShell do
before { File.stub(:absolute_path) { 'y' } }
subject { -> { shell.send(:escape_path, 'z') } }
- it { should raise_error(SystemExit, "Wrong repository path") }
+ it { should raise_error(GitlabShell::InvalidRepositoryPathError) }
end
def ssh_cmd(cmd)