diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-03 19:58:58 -0400 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-04 00:11:33 -0400 |
commit | 3286dd7a1db69460573a5fd2c9e997039b1f406b (patch) | |
tree | fba63dd375acb038a1e27f03eb9ba7530578cefd /spec/models/note_spec.rb | |
parent | 0ccdc631e6f45c0fd327631decb47f80d781302e (diff) | |
download | gitlab-ce-3286dd7a1db69460573a5fd2c9e997039b1f406b.tar.gz |
Don't garbage collect commits that have related DB records like comments
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 285ab19cfaf..6549791f675 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -70,6 +70,10 @@ describe Note, models: true do it "should be recognized by #for_commit?" do expect(note).to be_for_commit end + + it "keeps the commit around" do + expect(note.project.repository.kept_around?(commit.id)).to be_truthy + end end describe 'authorization' do |