class for moving project
This commit is contained in:
parent
d71a68af41
commit
4023d9f852
5 changed files with 56 additions and 24 deletions
14
spec/support/namespaces_stub.rb
Normal file
14
spec/support/namespaces_stub.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require 'namespace'
|
||||
require 'gitlab/project_mover'
|
||||
|
||||
class Namespace
|
||||
def ensure_dir_exist
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
class Gitlab::ProjectMover
|
||||
def execute
|
||||
true
|
||||
end
|
||||
end
|
|
@ -28,10 +28,4 @@ module StubbedRepository
|
|||
end
|
||||
end
|
||||
|
||||
class Namespace
|
||||
def ensure_dir_exist
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
Project.send(:include, StubbedRepository)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue