Verified Commit e9eb37ff authored by qua's avatar qua
Browse files

Another attempt at fixing tests for gpg v2.0

parent 0c23eaa5
require 'open3'
GPG_CLI_CMD = 'gpg --quiet --no-secmem-warning --status-fd 1 --with-fingerprint'
class PgpkeysController < ApplicationController
def index
@pgpkey_description = get_key(current_user)
......
require 'open3'
GPG_CLI_CMD = 'gpg --quiet --no-secmem-warning --status-fd 1 --with-fingerprint'
......@@ -31,7 +31,7 @@ class ActiveSupport::TestCase
end
def gpg_key_to_string(key)
Open3.popen3(::GPG_CLI_CMD) do |stdin, stdout, stderr, thr|
Open3.popen3(GPG_CLI_CMD) do |stdin, stdout, stderr, thr|
stdin.write(key)
stdin.close
stdout.read
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment