diff options
author | Stan Hu <stanhu@gmail.com> | 2019-01-17 09:40:23 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-02-06 08:33:09 +0300 |
commit | 6bac612dc4545abcbbfc86477417f711e02427ba (patch) | |
tree | a1dd2e6e3dc88715101e0ad0f2261c1dacd414be /spec/lib/gitlab/shell_spec.rb | |
parent | 82b6e5378ab7c63b166229388f0a9b1bd79319c7 (diff) |
Clean up Shell.fork_repository
Use project models instead of a list of parameters.
Diffstat (limited to 'spec/lib/gitlab/shell_spec.rb')
-rw-r--r-- | spec/lib/gitlab/shell_spec.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/lib/gitlab/shell_spec.rb b/spec/lib/gitlab/shell_spec.rb index 303dad94f2a..033e1bf81a1 100644 --- a/spec/lib/gitlab/shell_spec.rb +++ b/spec/lib/gitlab/shell_spec.rb @@ -474,15 +474,10 @@ describe Gitlab::Shell do end describe '#fork_repository' do + let(:target_project) { create(:project) } + subject do - gitlab_shell.fork_repository( - project.repository_storage, - project.disk_path, - project.full_path, - 'nfs-file05', - 'fork/path', - 'fork/path' - ) + gitlab_shell.fork_repository(project, target_project) end it 'returns true when the command succeeds' do |