diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 03:08:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 03:08:11 +0300 |
commit | 23bc19cb73aad969c9636b8b935111645e809e54 (patch) | |
tree | 887c9e014f8345f577769db4f75315ca59853b98 /spec/finders/releases_finder_spec.rb | |
parent | c4db541c1b2c97ab1eda354ea3899489fe5c33e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders/releases_finder_spec.rb')
-rw-r--r-- | spec/finders/releases_finder_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/finders/releases_finder_spec.rb b/spec/finders/releases_finder_spec.rb index b9c67361f45..3da5ee47b6b 100644 --- a/spec/finders/releases_finder_spec.rb +++ b/spec/finders/releases_finder_spec.rb @@ -52,6 +52,18 @@ describe ReleasesFinder do subject end end + + # See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27716 + context 'when tag is nil' do + before do + v1_0_0.update_column(:tag, nil) + end + + it 'ignores rows with a nil tag' do + expect(subject.size).to eq(1) + expect(subject).to eq([v1_1_0]) + end + end end end end |