summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/gpg_spec.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-06-28 13:08:29 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:43:37 +0200
commite9515dff845dfbbb51e556e4e6a4f9cf951cf239 (patch)
tree19ed4ef1499290bf2e263e6b19f27dbd7806f816 /spec/lib/gitlab/gpg_spec.rb
parent9a759c620179c72821fa6217c138036b57ea3695 (diff)
downloadgitlab-ce-e9515dff845dfbbb51e556e4e6a4f9cf951cf239.tar.gz
remove the :gpg rspec tag
since everything (except the CurrentKeyChain method) operates on a tempoary keychain anyway we don't need this anymore.
Diffstat (limited to 'spec/lib/gitlab/gpg_spec.rb')
-rw-r--r--spec/lib/gitlab/gpg_spec.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/lib/gitlab/gpg_spec.rb b/spec/lib/gitlab/gpg_spec.rb
index edf7405d7f1..497fbeab5d5 100644
--- a/spec/lib/gitlab/gpg_spec.rb
+++ b/spec/lib/gitlab/gpg_spec.rb
@@ -44,8 +44,14 @@ describe Gitlab::Gpg do
end
end
-describe Gitlab::Gpg::CurrentKeyChain, :gpg do
- describe '.add', :gpg do
+describe Gitlab::Gpg::CurrentKeyChain do
+ around do |example|
+ Gitlab::Gpg.using_tmp_keychain do
+ example.run
+ end
+ end
+
+ describe '.add' do
it 'stores the key in the keychain' do
expect(GPGME::Key.find(:public, GpgHelpers::User1.fingerprint)).to eq []