summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-03-31 16:43:12 +0000
committerRémy Coutable <remy@rymai.me>2016-03-31 16:43:12 +0000
commit95c7aa62defdbc7984c71faeb0b901a7fe59b223 (patch)
treec45ca97bcc7133b06fff9bc10cfc44baf3caf2d7 /spec/models
parent220b51264cf8f032f28a1b85b09de2c85f2e127d (diff)
parentf1d1dc00a93288623a012a933203ed99dc71fed8 (diff)
downloadgitlab-ce-95c7aa62defdbc7984c71faeb0b901a7fe59b223.tar.gz
Merge branch 'fix-todos' into 'master'
Destroy related todos when an Issue/MR is deleted Closes #14550 Closes #14598 See merge request !3376
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/concerns/issuable_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/concerns/issuable_spec.rb b/spec/models/concerns/issuable_spec.rb
index be29b6d66ff..b16ccc6e305 100644
--- a/spec/models/concerns/issuable_spec.rb
+++ b/spec/models/concerns/issuable_spec.rb
@@ -9,6 +9,7 @@ describe Issue, "Issuable" do
it { is_expected.to belong_to(:author) }
it { is_expected.to belong_to(:assignee) }
it { is_expected.to have_many(:notes).dependent(:destroy) }
+ it { is_expected.to have_many(:todos).dependent(:destroy) }
end
describe "Validation" do