diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-12-18 23:27:21 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-01-03 23:06:34 -0300 |
commit | 43308bd826a88f92bbc92320e0591faf92acd66f (patch) | |
tree | 63e5201178fa3daf6ac54b0392ace8720ae44a96 /spec/lib/gitlab/shell_spec.rb | |
parent | fb583c4b1839af16c50e27105a300695aa50bcad (diff) | |
download | gitlab-ce-43308bd826a88f92bbc92320e0591faf92acd66f.tar.gz |
Move push_remote_branches from Gitlab::Shell to Gitlab::Git::Repository
Diffstat (limited to 'spec/lib/gitlab/shell_spec.rb')
-rw-r--r-- | spec/lib/gitlab/shell_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/lib/gitlab/shell_spec.rb b/spec/lib/gitlab/shell_spec.rb index dd779b04741..7c2c02505b3 100644 --- a/spec/lib/gitlab/shell_spec.rb +++ b/spec/lib/gitlab/shell_spec.rb @@ -348,34 +348,6 @@ describe Gitlab::Shell do end end - describe '#push_remote_branches' do - subject(:result) do - gitlab_shell.push_remote_branches( - project.repository_storage_path, - project.disk_path, - 'downstream-remote', - ['master'] - ) - end - - it 'executes the command' do - expect(gitlab_projects).to receive(:push_branches) - .with('downstream-remote', timeout, true, ['master']) - .and_return(true) - - is_expected.to be_truthy - end - - it 'fails to execute the command' do - allow(gitlab_projects).to receive(:output) { 'error' } - expect(gitlab_projects).to receive(:push_branches) - .with('downstream-remote', timeout, true, ['master']) - .and_return(false) - - expect { result }.to raise_error(Gitlab::Shell::Error, 'error') - end - end - describe '#delete_remote_branches' do subject(:result) do gitlab_shell.delete_remote_branches( |