summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-05-20 17:38:08 -0500
committerLin Jen-Shin <godfat@godfat.org>2016-05-20 17:38:08 -0500
commitc2bc15a7669b8f21b12314f8607a02cf7d8b4828 (patch)
tree2d37f88348fe9cfbd94ff4f3ca5df631d0410c2d /spec
parenta7f6b75e7fba69964e84a0ae96c77650c66bb031 (diff)
downloadgitlab-ce-c2bc15a7669b8f21b12314f8607a02cf7d8b4828.tar.gz
Use the authentication_token for finding the user
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/email/receiver_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/email/receiver_spec.rb b/spec/lib/gitlab/email/receiver_spec.rb
index e892da7bb46..a9e2be0ad47 100644
--- a/spec/lib/gitlab/email/receiver_spec.rb
+++ b/spec/lib/gitlab/email/receiver_spec.rb
@@ -224,11 +224,11 @@ describe Gitlab::Email::Receiver, lib: true do
end
end
- context "when the authentication_token token didn't match" do
+ context "when we can't find the authentication_token" do
let!(:email_raw) { fixture_file("emails/wrong_authentication_token.eml") }
- it "raises an UserNotAuthorizedError" do
- expect { receiver.execute }.to raise_error(Gitlab::Email::UserNotAuthorizedError)
+ it "raises an UserNotFoundError" do
+ expect { receiver.execute }.to raise_error(Gitlab::Email::UserNotFoundError)
end
end