aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/gpg_spec.rb
diff options
context:
space:
mode:
authorJCount2017-04-01 16:29:26 -0400
committerJCount2017-04-01 21:29:09 -0400
commit0e1b7ce8eae046526bffb34ff7ec9ed756fcb56c (patch)
tree7594ae004afdbee5bdb487428cf255215298dbd3 /Library/Homebrew/test/gpg_spec.rb
parent1ea44788cb1e2526317fe3bba16167d491115e77 (diff)
downloadbrew-0e1b7ce8eae046526bffb34ff7ec9ed756fcb56c.tar.bz2
gpg_spec: make test compatible with gnupg 2.1.x
maintain existing compatibility with gnupg 2.0.x
Diffstat (limited to 'Library/Homebrew/test/gpg_spec.rb')
-rw-r--r--Library/Homebrew/test/gpg_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/test/gpg_spec.rb b/Library/Homebrew/test/gpg_spec.rb
index aa00d79f5..bca807f3b 100644
--- a/Library/Homebrew/test/gpg_spec.rb
+++ b/Library/Homebrew/test/gpg_spec.rb
@@ -13,7 +13,12 @@ describe Gpg do
shutup do
subject.create_test_key(dir)
end
- expect(dir/".gnupg/secring.gpg").to exist
+
+ begin
+ expect(dir/".gnupg/pubring.kbx").to be_file
+ rescue RSpec::Expectations::ExpectationNotMetError
+ expect(dir/".gnupg/secring.gpg").to be_file
+ end
end
end
end