diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-25 10:55:53 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-05-04 13:52:55 +0200 |
commit | 82eeb72c8c03727540b902d40e7e657d0a5ecb4c (patch) | |
tree | ec09058c44f447d7f09290f54c6cd35ee24de9ac /spec/models/term_agreement_spec.rb | |
parent | 3d6d0a09b65f032bbe1bd5ad4736dd764195bbe1 (diff) | |
download | gitlab-ce-82eeb72c8c03727540b902d40e7e657d0a5ecb4c.tar.gz |
Add model to track users accepting agreements
Diffstat (limited to 'spec/models/term_agreement_spec.rb')
-rw-r--r-- | spec/models/term_agreement_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/term_agreement_spec.rb b/spec/models/term_agreement_spec.rb new file mode 100644 index 00000000000..a59bf119692 --- /dev/null +++ b/spec/models/term_agreement_spec.rb @@ -0,0 +1,8 @@ +require 'spec_helper' + +describe TermAgreement do + describe 'validations' do + it { is_expected.to validate_presence_of(:term) } + it { is_expected.to validate_presence_of(:user) } + end +end |