diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-06 12:30:21 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-06 13:08:51 +0200 |
commit | f64e5d4a075479846f2e18bb34b84eb26d180f57 (patch) | |
tree | 436f8840ecdd060f20d282bd7165fa4765c277fa /spec/gitlab_shell_spec.rb | |
parent | 8f0f67622971d1861769a9deac6b102c9fdaed42 (diff) | |
download | gitlab-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.rb | 2 |
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) |