gitlab-org--gitlab-foss/spec/support/matchers/eq_pem.rb
Vladimir Shushlin 39e21fb266 Generate lets_encrypt_private_key on the fly
Remove migration generating lets encrypt key
Don't generate private_key if database is readonly

For reference:
This reverts commit 988a7f70489b99383b95e9f271a2caf6bb5b3a44.
This reverts commit 21acbe531592d55caf0e5b8716a3b551dafd6233.
2019-05-31 05:22:55 +00:00

11 lines
223 B
Ruby

# frozen_string_literal: true
RSpec::Matchers.define :eq_pem do |expected_pem_string|
match do |actual|
actual.to_pem == expected_pem_string
end
description do
"contain pem #{expected_pem_string}"
end
end