diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-23 23:14:02 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-30 12:09:34 -0300 |
commit | 9b93f8adc8d04ed2f62be06241723491711a6cbd (patch) | |
tree | 1a72351e92209386853d58bc3473df98f86060e7 /spec/models/concerns/issuable_spec.rb | |
parent | 07e1ec5dc1473458c899e745e02e021abfe02212 (diff) | |
download | gitlab-ce-9b93f8adc8d04ed2f62be06241723491711a6cbd.tar.gz |
Destroy related todos when an issue is deleted
Diffstat (limited to 'spec/models/concerns/issuable_spec.rb')
-rw-r--r-- | spec/models/concerns/issuable_spec.rb | 1 |
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 |