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/workers/repository_fork_worker_spec.rb | |
parent | 82b6e5378ab7c63b166229388f0a9b1bd79319c7 (diff) |
Clean up Shell.fork_repository
Use project models instead of a list of parameters.
Diffstat (limited to 'spec/workers/repository_fork_worker_spec.rb')
-rw-r--r-- | spec/workers/repository_fork_worker_spec.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/workers/repository_fork_worker_spec.rb b/spec/workers/repository_fork_worker_spec.rb index 97210eba127..31bfe88d0bd 100644 --- a/spec/workers/repository_fork_worker_spec.rb +++ b/spec/workers/repository_fork_worker_spec.rb @@ -24,14 +24,7 @@ describe RepositoryForkWorker do end def expect_fork_repository - expect(shell).to receive(:fork_repository).with( - 'default', - project.disk_path, - project.full_path, - forked_project.repository_storage, - forked_project.disk_path, - forked_project.full_path - ) + expect(shell).to receive(:fork_repository).with(project, forked_project) end describe 'when a worker was reset without cleanup' do |