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:
authorStan Hu <stanhu@gmail.com>2019-04-14 07:47:52 +0300
committerOswaldo Ferreira <>2019-04-19 04:01:51 +0300
commit54d64ec9f62f5c271b3ed649530a3a2eaa482206 (patch)
tree3d95ada06c8f9685683e7ad902ee43e45b56b59e /spec/lib/gitlab/git/repository_spec.rb
parent26653eb0359002e9991bf5089c5505b566125f26 (diff)
Remove source_branch_name commit check
This should already be done in Gitlab::Git:Compare.
Diffstat (limited to 'spec/lib/gitlab/git/repository_spec.rb')
-rw-r--r--spec/lib/gitlab/git/repository_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb
index 85c45ea4183..a98b04feb9c 100644
--- a/spec/lib/gitlab/git/repository_spec.rb
+++ b/spec/lib/gitlab/git/repository_spec.rb
@@ -1980,7 +1980,7 @@ describe Gitlab::Git::Repository, :seed_helper do
it 'returns nil when source ref does not exist' do
compare = repository.compare_source_branch('master', repository, 'non-existent-branch', straight: false)
- expect(compare).to be_nil
+ expect(compare.commits).to be_empty
end
end