diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-04-16 00:24:11 -0400 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-04-16 00:24:11 -0400 |
commit | e104bdf13f66319b450243c6dcb1d199e554b431 (patch) | |
tree | 0b3b957341dff6aa7eea7eea0a16acfeff47f881 /spec/gitlab_projects_spec.rb | |
parent | a471d5526249654f93dae8d88b92c2cddb287178 (diff) | |
download | gitlab-shell-e104bdf13f66319b450243c6dcb1d199e554b431.tar.gz |
fork fixes for upstream pull
Change-Id: Ia48a93ccbfea6fdc0791ce25cf3e6291bfe7fa08
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r-- | spec/gitlab_projects_spec.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb index 50d5023..ef7fa96 100644 --- a/spec/gitlab_projects_spec.rb +++ b/spec/gitlab_projects_spec.rb @@ -78,13 +78,20 @@ describe GitlabProjects do end describe :fork_project do + let(:gl_project_import) { build_gitlab_projects('import-project', repo_name, 'https://github.com/randx/six.git') } let(:gl_projects) { build_gitlab_projects('fork-project', repo_name, 'forked-to-namespace')} + before do + FileUtils.mkdir_p(tmp_repo_path) + FileUtils.mkdir_p(File.join(tmp_repos_path, 'forked-to-namespace')) + gl_project_import.exec + end + it "should fork the repo" do gl_projects.exec - File.exists?(File.join(tmp_repo_path, 'forked-to-namespace', repo_name)) - File.exists?(File.join(tmp_repo_path, 'forked-to-namespace', repo_name, '/hooks/update/post-receive')) - File.exists?(File.join(tmp_repo_path, 'forked-to-namespace', repo_name, '/hooks/update/')) + File.exists?(File.join(tmp_repos_path, 'forked-to-namespace', repo_name)).should be_true + File.exists?(File.join(tmp_repos_path, 'forked-to-namespace', repo_name, '/hooks/update/post-receive')).should be_true + File.exists?(File.join(tmp_repos_path, 'forked-to-namespace', repo_name, '/hooks/update/')).should be_true end end |