summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-12 12:12:03 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-12 12:12:03 +0200
commit26147a3ac54505c8ce6da22b21b95bb1131b9d44 (patch)
tree4f629734fd4c1e599586d7f657ffc3bbe26bf64b /spec
parent9d03bb102dfd33dc6f9072a3e2c5f17407d8cca3 (diff)
downloadgitlab-shell-26147a3ac54505c8ce6da22b21b95bb1131b9d44.tar.gz
mv-project feature added
Diffstat (limited to 'spec')
-rw-r--r--spec/gitlab_projects_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index a9eb15f..cbe1ab2 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -39,6 +39,21 @@ describe GitlabProjects do
end
end
+ describe :mv_project do
+ let(:gl_projects) { build_gitlab_projects('mv-project', repo_name, 'repo.git') }
+
+ before do
+ FileUtils.mkdir_p(tmp_repo_path)
+ end
+
+ it "should move a repo directory" do
+ File.exists?(tmp_repo_path).should be_true
+ gl_projects.exec
+ File.exists?(tmp_repo_path).should be_false
+ File.exists?(File.join(tmp_repos_path, 'repo.git')).should be_true
+ end
+ end
+
describe :rm_project do
let(:gl_projects) { build_gitlab_projects('rm-project', repo_name) }