diff options
Diffstat (limited to 'ruby/spec')
-rw-r--r-- | ruby/spec/lib/gitlab/git/repository_spec.rb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/ruby/spec/lib/gitlab/git/repository_spec.rb b/ruby/spec/lib/gitlab/git/repository_spec.rb index 6bbf4bcff..5061d1f41 100644 --- a/ruby/spec/lib/gitlab/git/repository_spec.rb +++ b/ruby/spec/lib/gitlab/git/repository_spec.rb @@ -328,43 +328,6 @@ describe Gitlab::Git::Repository do # rubocop:disable Metrics/BlockLength end end - describe '#rebase' do - let(:repository) { mutable_repository } - let(:rebase_id) { '2' } - let(:branch_name) { 'rd-add-file-larger-than-1-mb' } - let(:branch_sha) { 'c54ad072fabee9f7bf9b2c6c67089db97ebfbecd' } - let(:remote_branch) { 'master' } - - subject do - opts = { - branch: branch_name, - branch_sha: branch_sha, - remote_repository: repository, - remote_branch: remote_branch - } - - repository.rebase(user, rebase_id, **opts) - end - - describe 'sparse checkout' do - let(:expected_files) { %w[files/images/emoji.png] } - - it 'lists files modified in source branch in sparse-checkout' do - allow(repository).to receive(:with_worktree).and_wrap_original do |m, *args, **kwargs| - m.call(*args, **kwargs) do - worktree = args[0] - sparse = repository.path + "/worktrees/#{worktree.name}/info/sparse-checkout" - diff_files = IO.readlines(sparse, chomp: true) - - expect(diff_files).to eq(expected_files) - end - end - - subject - end - end - end - describe '#cleanup' do context 'when Rugged has been called' do it 'calls close on Rugged::Repository' do |