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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-04 09:06:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-04 09:06:46 +0300
commit15a2d004be2f79160752d77f701c0f08e7f96973 (patch)
tree88bcbd90f3ab751264232d1d1902a818c77a2409 /spec
parent80ff3642b4b5ef4db5b4b144d4a17c9cf60c4586 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/application_settings_helper_spec.rb23
1 files changed, 21 insertions, 2 deletions
diff --git a/spec/helpers/application_settings_helper_spec.rb b/spec/helpers/application_settings_helper_spec.rb
index 38af4aab0ef..e466150fa46 100644
--- a/spec/helpers/application_settings_helper_spec.rb
+++ b/spec/helpers/application_settings_helper_spec.rb
@@ -38,7 +38,26 @@ describe ApplicationSettingsHelper do
it_behaves_like 'when HTTP protocol is in use', 'http'
context 'with tracking parameters' do
- it { expect(visible_attributes).to include(*%i(snowplow_collector_hostname snowplow_cookie_domain snowplow_enabled snowplow_site_id))}
- it { expect(visible_attributes).to include(*%i(pendo_enabled pendo_url))}
+ it { expect(visible_attributes).to include(*%i(snowplow_collector_hostname snowplow_cookie_domain snowplow_enabled snowplow_site_id)) }
+ it { expect(visible_attributes).to include(*%i(pendo_enabled pendo_url)) }
+ end
+
+ describe '.integration_expanded?' do
+ let(:application_setting) { build(:application_setting) }
+
+ it 'is expanded' do
+ application_setting.plantuml_enabled = true
+ application_setting.valid?
+ helper.instance_variable_set(:@application_setting, application_setting)
+
+ expect(helper.integration_expanded?('plantuml_')).to be_truthy
+ end
+
+ it 'is not expanded' do
+ application_setting.valid?
+ helper.instance_variable_set(:@application_setting, application_setting)
+
+ expect(helper.integration_expanded?('plantuml_')).to be_falsey
+ end
end
end