summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-24 11:46:19 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-24 11:46:19 +0200
commit4023d9f85290faea47a2b2bcf3ce879ed0f07e9f (patch)
tree057882c43a1c0ab9870a8762c01344be484f645c /spec
parentd71a68af41e875f7391a385a252052b4f7f5583e (diff)
downloadgitlab-ce-4023d9f85290faea47a2b2bcf3ce879ed0f07e9f.tar.gz
class for moving project
Diffstat (limited to 'spec')
-rw-r--r--spec/support/namespaces_stub.rb14
-rw-r--r--spec/support/stubbed_repository.rb6
2 files changed, 14 insertions, 6 deletions
diff --git a/spec/support/namespaces_stub.rb b/spec/support/namespaces_stub.rb
new file mode 100644
index 00000000000..35754f56e83
--- /dev/null
+++ b/spec/support/namespaces_stub.rb
@@ -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
diff --git a/spec/support/stubbed_repository.rb b/spec/support/stubbed_repository.rb
index 871319fa1b8..5bf3ea46099 100644
--- a/spec/support/stubbed_repository.rb
+++ b/spec/support/stubbed_repository.rb
@@ -28,10 +28,4 @@ module StubbedRepository
end
end
-class Namespace
- def ensure_dir_exist
- true
- end
-end
-
Project.send(:include, StubbedRepository)