diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-06-14 10:31:24 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-06-14 10:31:24 +0200 |
commit | 3ed4a1b3aadd50b47181312b49911d2a770c4c82 (patch) | |
tree | daa0fb51a3dd0480332d5befa01c44713a532bf7 /spec/lib/gitlab/git/repository_spec.rb | |
parent | 89ab32c6b20b9a0e8cde9d7f28759db8f53c7ffb (diff) | |
download | gitlab-ce-3ed4a1b3aadd50b47181312b49911d2a770c4c82.tar.gz |
HasLocalBranches check is done by Gitaly only
Closes https://gitlab.com/gitlab-org/gitaly/issues/217
Diffstat (limited to 'spec/lib/gitlab/git/repository_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/repository_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb index 9de7724e34e..5bae99101e6 100644 --- a/spec/lib/gitlab/git/repository_spec.rb +++ b/spec/lib/gitlab/git/repository_spec.rb @@ -425,7 +425,7 @@ describe Gitlab::Git::Repository, seed_helper: true do end describe '#has_local_branches?' do - shared_examples 'check for local branches' do + context 'check for local branches' do it { expect(repository.has_local_branches?).to eq(true) } context 'mutable' do @@ -459,14 +459,6 @@ describe Gitlab::Git::Repository, seed_helper: true do end end end - - context 'with gitaly' do - it_behaves_like 'check for local branches' - end - - context 'without gitaly', :skip_gitaly_mock do - it_behaves_like 'check for local branches' - end end describe "#delete_branch" do |