gitlab-org--gitlab-foss/spec/lib/gitlab/lets_encrypt_spec.rb
Vladimir Shushlin 7b5936ebda Remove auto ssl feature flags
* remove feature flag for admin settings
* remove feature flag for domain settings
2019-07-12 16:53:44 +00:00

27 lines
553 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe ::Gitlab::LetsEncrypt do
include LetsEncryptHelpers
before do
stub_lets_encrypt_settings
end
describe '.enabled?' do
subject { described_class.enabled? }
context 'when terms of service are accepted' do
it { is_expected.to eq(true) }
end
context 'when terms of service are not accepted' do
before do
stub_application_setting(lets_encrypt_terms_of_service_accepted: false)
end
it { is_expected.to eq(false) }
end
end
end