From 0e1b7ce8eae046526bffb34ff7ec9ed756fcb56c Mon Sep 17 00:00:00 2001 From: JCount Date: Sat, 1 Apr 2017 16:29:26 -0400 Subject: [PATCH] gpg_spec: make test compatible with gnupg 2.1.x maintain existing compatibility with gnupg 2.0.x --- Library/Homebrew/test/gpg_spec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/test/gpg_spec.rb b/Library/Homebrew/test/gpg_spec.rb index aa00d79f51..bca807f3bf 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