diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-04 00:06:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-04 00:06:15 +0000 |
commit | e2334f3613aae1c0f5b99d908e1c51213bfd7635 (patch) | |
tree | 8fd02806b70ffe4d49633412bfa2c7b58304095c /spec/finders | |
parent | 4529c19950e412f0461910585414f8633d3b1b18 (diff) | |
download | gitlab-ce-e2334f3613aae1c0f5b99d908e1c51213bfd7635.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/user_finder_spec.rb | 22 |
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 |