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
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-26 14:28:24 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-05-04 14:52:55 +0300
commit3629dc338fbe6c351ce89a94caa4c238965ee33a (patch)
tree65263132237dc471c869b05b9071b773b7404924 /spec/features/users
parent17b25bd263edaae70d5dae5fb035f5c28f9bb0cd (diff)
Display terms to a user
When terms are present, they can be viewed on `/-/users/terms`.
Diffstat (limited to 'spec/features/users')
-rw-r--r--spec/features/users/terms_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/users/terms_spec.rb b/spec/features/users/terms_spec.rb
new file mode 100644
index 00000000000..34e759bc56a
--- /dev/null
+++ b/spec/features/users/terms_spec.rb
@@ -0,0 +1,16 @@
+require 'spec_helper'
+
+describe 'Users > Terms' do
+ let(:user) { create(:user) }
+ let!(:term) { create(:term, terms: 'By accepting, you promise to be nice!') }
+
+ before do
+ sign_in(user)
+
+ visit terms_path
+ end
+
+ it 'shows the terms' do
+ expect(page).to have_content('By accepting, you promise to be nice!')
+ end
+end