diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-02-22 21:51:00 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-25 03:22:29 +0300 |
commit | 4be20ba923c010c105e30ef8bba3b9bf82b2d0ca (patch) | |
tree | 33d714281823bc7f21739a3f11a4328f6c3b7030 /spec/lib/gitlab/git_access_wiki_spec.rb | |
parent | b9ed721bc23ef2debe321393c2bc161a60912e5e (diff) |
Respond 404 when repo does not exist
Diffstat (limited to 'spec/lib/gitlab/git_access_wiki_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git_access_wiki_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git_access_wiki_spec.rb b/spec/lib/gitlab/git_access_wiki_spec.rb index 215f1ecc9c5..730ede99fc9 100644 --- a/spec/lib/gitlab/git_access_wiki_spec.rb +++ b/spec/lib/gitlab/git_access_wiki_spec.rb @@ -57,7 +57,7 @@ describe Gitlab::GitAccessWiki do # Sanity check for rm_rf expect(wiki_repo.exists?).to eq(false) - expect { subject }.to raise_error(Gitlab::GitAccess::UnauthorizedError, 'A repository for this project does not exist yet.') + expect { subject }.to raise_error(Gitlab::GitAccess::NotFoundError, 'A repository for this project does not exist yet.') end end end |