diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-07-17 22:08:23 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-07-18 16:48:47 -0400 |
commit | 68b1e5a97ce7760d845edc84f4ac90f3c6008cfd (patch) | |
tree | 492d92bf07e6ddf441446ee57ec4156092027106 /spec/models | |
parent | 1df32177a8dfd0f1f948a48ee9cf87ba74f43417 (diff) | |
download | gitlab-ce-68b1e5a97ce7760d845edc84f4ac90f3c6008cfd.tar.gz |
Incorporate Gitaly's RefService.FindAllRemoteBranches RPCgitaly-remote-branches
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/repository_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index e65214808e1..5d64602ca56 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -2225,20 +2225,6 @@ describe Repository do end end - describe '#remote_branches' do - it 'returns the remote branches' do - masterrev = repository.find_branch('master').dereferenced_target - create_remote_branch('joe', 'remote_branch', masterrev) - repository.add_branch(user, 'local_branch', masterrev.id) - - # TODO: move this test to gitaly https://gitlab.com/gitlab-org/gitaly/issues/1243 - Gitlab::GitalyClient::StorageSettings.allow_disk_access do - expect(repository.remote_branches('joe').any? { |branch| branch.name == 'local_branch' }).to eq(false) - expect(repository.remote_branches('joe').any? { |branch| branch.name == 'remote_branch' }).to eq(true) - end - end - end - describe '#commit_count' do context 'with a non-existing repository' do it 'returns 0' do |