summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/lets_encrypt_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-10 03:06:28 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-10 03:06:28 +0000
commitee97c0d1a2dd452829d2cf6ec150045536bd74d5 (patch)
tree95d2551999b44d70842e156877d1d71145baba9f /spec/lib/gitlab/lets_encrypt_spec.rb
parent308146dc398fd4c13453048105498018459e0985 (diff)
downloadgitlab-ce-ee97c0d1a2dd452829d2cf6ec150045536bd74d5.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/lets_encrypt_spec.rb')
-rw-r--r--spec/lib/gitlab/lets_encrypt_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/gitlab/lets_encrypt_spec.rb b/spec/lib/gitlab/lets_encrypt_spec.rb
index 65aea0937f1..2229393fb32 100644
--- a/spec/lib/gitlab/lets_encrypt_spec.rb
+++ b/spec/lib/gitlab/lets_encrypt_spec.rb
@@ -24,4 +24,16 @@ describe ::Gitlab::LetsEncrypt do
it { is_expected.to eq(false) }
end
end
+
+ describe '.terms_of_service_url' do
+ before do
+ stub_lets_encrypt_client
+ end
+
+ subject { described_class.terms_of_service_url }
+
+ it 'returns the url' do
+ is_expected.to eq("https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf")
+ end
+ end
end