summaryrefslogtreecommitdiff
path: root/spec/models/merge_request_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-11-12 17:47:20 +0000
committerCindy Pallares <cindy@gitlab.com>2018-11-12 18:09:07 -0500
commit1fa492eb99d764ebd35c69b5e5af180adb79ccc4 (patch)
treee124db3d3881fedba21fe59311f024d404b13ccd /spec/models/merge_request_spec.rb
parent69f85f496c52de35bc6b6fda7ac8526be807fd11 (diff)
downloadgitlab-ce-1fa492eb99d764ebd35c69b5e5af180adb79ccc4.tar.gz
Merge branch 'sh-fix-refresh-service-deleted-branch' into 'master'
Fix MergeRequestService erroring out on deleted branch Closes #53853 See merge request gitlab-org/gitlab-ce!22989
Diffstat (limited to 'spec/models/merge_request_spec.rb')
-rw-r--r--spec/models/merge_request_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index c7202b481d3..131db6a5ff9 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -2651,6 +2651,10 @@ describe MergeRequest do
describe '#includes_any_commits?' do
it 'returns false' do
+ expect(subject.includes_any_commits?([])).to be_falsey
+ end
+
+ it 'returns false' do
expect(subject.includes_any_commits?([Gitlab::Git::BLANK_SHA])).to be_falsey
end