diff options
author | ZJ van de Weg <zegerjan@gitlab.com> | 2016-05-25 22:07:36 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-06-06 12:03:39 +0300 |
commit | 2f9c2149a38e8a4067cb50c1cd1bbb1e72c263b3 (patch) | |
tree | 89b1f8d0cf86a328d8a8d276b79e5321fbdd43dc /spec/models/note_spec.rb | |
parent | fc809d689a03e69c581c1bb8ed0cf246953a7c08 (diff) |
Backend awardables on comments
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 139f7cb9783..f15e96714b2 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -9,6 +9,16 @@ describe Note, models: true do it { is_expected.to have_many(:todos).dependent(:destroy) } end + describe 'modules' do + subject { described_class } + + it { is_expected.to include_module(Participable) } + it { is_expected.to include_module(Mentionable) } + it { is_expected.to include_module(Awardable) } + + it { is_expected.to include_module(Gitlab::CurrentSettings) } + end + describe 'validation' do it { is_expected.to validate_presence_of(:note) } it { is_expected.to validate_presence_of(:project) } |