gitlab-org--gitlab-foss/spec/factories/term_agreements.rb
tauriedavis 285ffb2238 Messaging on terms page when user already accepted
We show a blue flash banner if the user already accepted, and show a
button allowing them to continue to the application.
2018-06-04 22:22:11 +02:00

14 lines
171 B
Ruby

FactoryBot.define do
factory :term_agreement do
term
user
end
trait :declined do
accepted false
end
trait :accepted do
accepted true
end
end