diff options
author | Vladimir Shushlin <vshushlin@gitlab.com> | 2019-07-12 19:53:44 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-07-12 19:53:44 +0300 |
commit | 7b5936ebdad8df646cbce7a9c035da62cac7cfce (patch) | |
tree | a9810f2171b3a19045717ff487ff5b4bedde7561 /spec/lib/gitlab/lets_encrypt_spec.rb | |
parent | 66333bc78b200f5cfdd3fc47aa1ed52a0eb4220a (diff) |
Remove auto ssl feature flags
* remove feature flag for admin settings
* remove feature flag for domain settings
Diffstat (limited to 'spec/lib/gitlab/lets_encrypt_spec.rb')
-rw-r--r-- | spec/lib/gitlab/lets_encrypt_spec.rb | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/spec/lib/gitlab/lets_encrypt_spec.rb b/spec/lib/gitlab/lets_encrypt_spec.rb index 674b114e9d3..65aea0937f1 100644 --- a/spec/lib/gitlab/lets_encrypt_spec.rb +++ b/spec/lib/gitlab/lets_encrypt_spec.rb @@ -10,21 +10,10 @@ describe ::Gitlab::LetsEncrypt do end describe '.enabled?' do - let(:project) { create(:project) } - let(:pages_domain) { create(:pages_domain, project: project) } - - subject { described_class.enabled?(pages_domain) } + subject { described_class.enabled? } context 'when terms of service are accepted' do it { is_expected.to eq(true) } - - context 'when feature flag is disabled' do - before do - stub_feature_flags(pages_auto_ssl: false) - end - - it { is_expected.to eq(false) } - end end context 'when terms of service are not accepted' do @@ -34,23 +23,5 @@ describe ::Gitlab::LetsEncrypt do it { is_expected.to eq(false) } end - - context 'when feature flag for project is disabled' do - before do - stub_feature_flags(pages_auto_ssl_for_project: false) - end - - it 'returns false' do - is_expected.to eq(false) - end - end - - context 'when domain has not project' do - let(:pages_domain) { create(:pages_domain) } - - it 'returns false' do - is_expected.to eq(false) - end - end end end |