2019-09-04 21:01:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe ::Gitlab::LetsEncrypt::Challenge do
|
2019-09-04 21:01:54 +05:30
|
|
|
include LetsEncryptHelpers
|
|
|
|
|
|
|
|
let(:challenge) { described_class.new(acme_challenge_double) }
|
|
|
|
|
|
|
|
LetsEncryptHelpers::ACME_CHALLENGE_METHODS.each do |method, value|
|
|
|
|
describe "##{method}" do
|
|
|
|
it 'delegates to Acme::Client::Resources::Challenge' do
|
|
|
|
expect(challenge.public_send(method)).to eq(value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|