diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-24 11:46:19 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-24 11:46:19 +0200 |
commit | 4023d9f85290faea47a2b2bcf3ce879ed0f07e9f (patch) | |
tree | 057882c43a1c0ab9870a8762c01344be484f645c /spec | |
parent | d71a68af41e875f7391a385a252052b4f7f5583e (diff) | |
download | gitlab-ce-4023d9f85290faea47a2b2bcf3ce879ed0f07e9f.tar.gz |
class for moving project
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/namespaces_stub.rb | 14 | ||||
-rw-r--r-- | spec/support/stubbed_repository.rb | 6 |
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) |