Welcome to mirror list, hosted at ThFree Co, Russian Federation.

challenge_spec.rb « lets_encrypt « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fcd92586362fae0cc1fa4ac9c4a6055bc16118b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

describe ::Gitlab::LetsEncrypt::Challenge do
  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