gpg_spec: make test compatible with gnupg 2.1.x

maintain existing compatibility with gnupg 2.0.x
This commit is contained in:
JCount 2017-04-01 16:29:26 -04:00
parent 1ea44788cb
commit 0e1b7ce8ea

View File

@ -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