Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-17 22:45:32 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-20 17:12:05 +0300
commit1d476b0656b3ec24e264d7a7c30bdca83704b3bd (patch)
treed1cdb1b22c0f1365efd80a0485e25b1ecfaf7735 /spec/models/note_spec.rb
parent14fc05ebfdfb6654859ee6f57aa462420a6bcb56 (diff)
Create a pending task when a user is mentioned on a note
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index e6da3724d33..e146f53c3f7 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -26,6 +26,8 @@ describe Note, models: true do
it { is_expected.to belong_to(:project) }
it { is_expected.to belong_to(:noteable) }
it { is_expected.to belong_to(:author).class_name('User') }
+
+ it { is_expected.to have_many(:tasks).dependent(:delete_all) }
end
describe 'validation' do