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-18 21:36:30 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-20 17:12:05 +0300
commita74a69db689b7e36c0e275a1094b1ad757bd6e86 (patch)
treeb76908b9b2ee656b264565cd4a34b38f6b08f6d8 /spec/models/note_spec.rb
parentbc54300ce5329b66d0ba726f814d9e761e782668 (diff)
Use destroy, in case we ever have before_destroy callbacks on Task
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index e146f53c3f7..70c3a999c95 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -27,7 +27,7 @@ describe Note, models: true do
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) }
+ it { is_expected.to have_many(:tasks).dependent(:destroy) }
end
describe 'validation' do