diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 21:08:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 21:08:10 +0300 |
commit | 175b4fa261259ab0d033482d10bb4159fee8e538 (patch) | |
tree | e1f1dba5e41177f11ffded5a505e0e7f692b8df5 /spec/models/key_spec.rb | |
parent | 4eea104c69e59f6fa53c7bc15b986c69f29b60c8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/key_spec.rb')
-rw-r--r-- | spec/models/key_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index a0b6eff88d5..559dc95768a 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -92,6 +92,7 @@ describe Key, :mailer do with_them do let!(:key) { create(factory) } let!(:original_fingerprint) { key.fingerprint } + let!(:original_fingerprint_sha256) { key.fingerprint_sha256 } it 'accepts a key with blank space characters after stripping them' do modified_key = key.key.insert(100, chars.first).insert(40, chars.last) @@ -104,6 +105,8 @@ describe Key, :mailer do expect(content).not_to match(/\s/) expect(original_fingerprint).to eq(key.fingerprint) + expect(original_fingerprint).to eq(key.fingerprint_md5) + expect(original_fingerprint_sha256).to eq(key.fingerprint_sha256) end end end |