summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/email
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-05-18 17:57:14 -0500
committerLin Jen-Shin <godfat@godfat.org>2016-05-18 17:57:14 -0500
commita7c823a5730fade9d8cc2c992c0f80cc12b1c0a7 (patch)
treed081264973aa7764359114c1de72b32d700bb63a /spec/lib/gitlab/email
parente7a6d17b2b9a3a1b1cae0733da46ddedfe2dc3b1 (diff)
downloadgitlab-ce-a7c823a5730fade9d8cc2c992c0f80cc12b1c0a7.tar.gz
Give ProjectNotFound when the project is not readable
Diffstat (limited to 'spec/lib/gitlab/email')
-rw-r--r--spec/lib/gitlab/email/receiver_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/email/receiver_spec.rb b/spec/lib/gitlab/email/receiver_spec.rb
index 58c525f4048..a9b93044a08 100644
--- a/spec/lib/gitlab/email/receiver_spec.rb
+++ b/spec/lib/gitlab/email/receiver_spec.rb
@@ -88,8 +88,8 @@ describe Gitlab::Email::Receiver, lib: true do
project.update_attribute(:visibility_level, Project::PRIVATE)
end
- it "raises a UserNotAuthorizedError" do
- expect { receiver.execute }.to raise_error(Gitlab::Email::UserNotAuthorizedError)
+ it "raises a ProjectNotFound" do
+ expect { receiver.execute }.to raise_error(Gitlab::Email::ProjectNotFound)
end
end