Skip to content
Snippets Groups Projects
Commit 43b64bfe authored by JCount's avatar JCount
Browse files

gpg_spec: use new version method to directly compare version objects

parent 889d6166
No related branches found
No related tags found
No related merge requests found
......@@ -12,14 +12,12 @@ describe Gpg do
shutup do
subject.create_test_key(dir)
gpg = subject::GPG_EXECUTABLE
@version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
end
if @version.to_s.start_with?("2.1")
expect(dir/".gnupg/pubring.kbx").to be_file
if subject.version == Version.create("2.0")
expect(dir/".gnupg/secring.gpg").to be_a_file
else
expect(dir/".gnupg/secring.gpg").to be_file
expect(dir/".gnupg/pubring.kbx").to be_a_file
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment