summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authortauriedavis <taurie@gitlab.com>2018-05-25 16:17:57 -0700
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-04 22:22:11 +0200
commit285ffb223896f2226531be2ba10933414194155c (patch)
treecd6faec94ab2e4f65b0ed48f458b580b2853fac9 /spec/factories
parent35ba75f6b93c77f078ab2cf538a256f8aa534eb3 (diff)
downloadgitlab-ce-285ffb223896f2226531be2ba10933414194155c.tar.gz
Messaging on terms page when user already accepted46585-gdpr-terms-acceptance
We show a blue flash banner if the user already accepted, and show a button allowing them to continue to the application.
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/term_agreements.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/term_agreements.rb b/spec/factories/term_agreements.rb
index 557599e663d..3c4eebd0196 100644
--- a/spec/factories/term_agreements.rb
+++ b/spec/factories/term_agreements.rb
@@ -3,4 +3,12 @@ FactoryBot.define do
term
user
end
+
+ trait :declined do
+ accepted false
+ end
+
+ trait :accepted do
+ accepted true
+ end
end