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:
authorAlexis Reigel <mail@koffeinfrei.org>2017-02-23 14:02:36 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:40:41 +0300
commiteb77e1068c09cf8ef45689720a2bf200542b8024 (patch)
tree2ff4c03ed9d879a36a52e3b4f1eb97d283deac02 /spec/models/gpg_key_spec.rb
parent87c0fd34557463528a552986a42f4ebb52d3bd56 (diff)
add second gpg key for specs
Diffstat (limited to 'spec/models/gpg_key_spec.rb')
-rw-r--r--spec/models/gpg_key_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/gpg_key_spec.rb b/spec/models/gpg_key_spec.rb
index facdf91550f..6bfd0b0d4f6 100644
--- a/spec/models/gpg_key_spec.rb
+++ b/spec/models/gpg_key_spec.rb
@@ -16,7 +16,7 @@ describe GpgKey do
context 'callbacks', :gpg do
describe 'extract_fingerprint' do
it 'extracts the fingerprint from the gpg key' do
- gpg_key = described_class.new(key: GpgHelpers.public_key)
+ gpg_key = described_class.new(key: GpgHelpers::User1.public_key)
gpg_key.valid?
expect(gpg_key.fingerprint).to eq '4F4840A503964251CF7D7F5DC728AF10972E97C0'
end
@@ -24,7 +24,7 @@ describe GpgKey do
describe 'add_to_keychain' do
it 'calls add_to_keychain after create' do
- expect(Gitlab::Gpg).to receive(:add_to_keychain).with(GpgHelpers.public_key)
+ expect(Gitlab::Gpg).to receive(:add_to_keychain).with(GpgHelpers::User1.public_key)
create :gpg_key
end
end