Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-04 03:06:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-04 03:06:15 +0300
commite2334f3613aae1c0f5b99d908e1c51213bfd7635 (patch)
tree8fd02806b70ffe4d49633412bfa2c7b58304095c /spec/finders/user_finder_spec.rb
parent4529c19950e412f0461910585414f8633d3b1b18 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders/user_finder_spec.rb')
-rw-r--r--spec/finders/user_finder_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/finders/user_finder_spec.rb b/spec/finders/user_finder_spec.rb
index c20d7850d68..b89b422aa2c 100644
--- a/spec/finders/user_finder_spec.rb
+++ b/spec/finders/user_finder_spec.rb
@@ -176,26 +176,4 @@ describe UserFinder do
end
end
end
-
- describe '#find_by_ssh_key_id' do
- let_it_be(:ssh_key) { create(:key, user: user) }
-
- it 'returns the user when passing the ssh key id' do
- found = described_class.new(ssh_key.id).find_by_ssh_key_id
-
- expect(found).to eq(user)
- end
-
- it 'returns the user when passing the ssh key id (string)' do
- found = described_class.new(ssh_key.id.to_s).find_by_ssh_key_id
-
- expect(found).to eq(user)
- end
-
- it 'returns nil when the id does not exist' do
- found = described_class.new(-1).find_by_ssh_key_id
-
- expect(found).to be_nil
- end
- end
end