summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@delfi.ee>2016-11-06 20:27:58 +0200
committerElan Ruusamäe <glen@delfi.ee>2016-11-06 20:27:58 +0200
commitb9176afbc887b2bac4e07fdad65f3560cc3ceedf (patch)
treed6d0c9b90c417c9219e1e188acbaf3a70bab5312
parent31704680cc967f0a053edc70db828ff780d7d0e4 (diff)
downloadgitlab-ce-b9176afbc887b2bac4e07fdad65f3560cc3ceedf.tar.gz
update existing test
-rw-r--r--spec/lib/gitlab/identifier_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/identifier_spec.rb b/spec/lib/gitlab/identifier_spec.rb
index 47d6f1007d1..f42c4453dd1 100644
--- a/spec/lib/gitlab/identifier_spec.rb
+++ b/spec/lib/gitlab/identifier_spec.rb
@@ -65,7 +65,7 @@ describe Gitlab::Identifier do
commit = double(:commit, author_email: user.email)
expect(project).to receive(:commit).with('123').twice.and_return(commit)
- expect(User).to receive(:find_by).once.and_call_original
+ expect(User).to receive(:find_by_any_email).once.and_call_original
2.times do
expect(identifier.identify_using_commit(project, '123')).to eq(user)