summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/gpg_spec.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-02-23 12:02:36 +0100
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:40:41 +0200
commiteb77e1068c09cf8ef45689720a2bf200542b8024 (patch)
tree2ff4c03ed9d879a36a52e3b4f1eb97d283deac02 /spec/lib/gitlab/gpg_spec.rb
parent87c0fd34557463528a552986a42f4ebb52d3bd56 (diff)
downloadgitlab-ce-eb77e1068c09cf8ef45689720a2bf200542b8024.tar.gz
add second gpg key for specs
Diffstat (limited to 'spec/lib/gitlab/gpg_spec.rb')
-rw-r--r--spec/lib/gitlab/gpg_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/gpg_spec.rb b/spec/lib/gitlab/gpg_spec.rb
index 2f779492c24..04a434a993d 100644
--- a/spec/lib/gitlab/gpg_spec.rb
+++ b/spec/lib/gitlab/gpg_spec.rb
@@ -4,7 +4,7 @@ describe Gitlab::Gpg do
describe '.fingerprints_from_key' do
it 'returns the fingerprint' do
expect(
- described_class.fingerprints_from_key(GpgHelpers.public_key)
+ described_class.fingerprints_from_key(GpgHelpers::User1.public_key)
).to eq ['4F4840A503964251CF7D7F5DC728AF10972E97C0']
end
@@ -19,7 +19,7 @@ describe Gitlab::Gpg do
it 'stores the key in the keychain' do
expect(GPGME::Key.find(:public, '4F4840A503964251CF7D7F5DC728AF10972E97C0')).to eq []
- Gitlab::Gpg.add_to_keychain(GpgHelpers.public_key)
+ Gitlab::Gpg.add_to_keychain(GpgHelpers::User1.public_key)
expect(GPGME::Key.find(:public, '4F4840A503964251CF7D7F5DC728AF10972E97C0')).not_to eq []
end
@@ -27,7 +27,7 @@ describe Gitlab::Gpg do
describe '.remove_from_keychain', :gpg do
it 'removes the key from the keychain' do
- Gitlab::Gpg.add_to_keychain(GpgHelpers.public_key)
+ Gitlab::Gpg.add_to_keychain(GpgHelpers::User1.public_key)
expect(GPGME::Key.find(:public, '4F4840A503964251CF7D7F5DC728AF10972E97C0')).not_to eq []
Gitlab::Gpg.remove_from_keychain('4F4840A503964251CF7D7F5DC728AF10972E97C0')