debian-mirror-gitlab/spec/factories/term_agreements.rb

17 lines
210 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
FactoryBot.define do
factory :term_agreement do
term
user
end
2018-11-08 19:23:39 +05:30
trait :declined do
2019-12-21 20:55:43 +05:30
accepted { false }
2018-11-08 19:23:39 +05:30
end
trait :accepted do
2019-12-21 20:55:43 +05:30
accepted { true }
2018-11-08 19:23:39 +05:30
end
2018-10-15 14:42:47 +05:30
end