diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-15 13:37:57 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-19 18:11:41 +0200 |
commit | 3739a840521b64d72fe7ed2c30a53bd3ee61b64a (patch) | |
tree | 05c51355c3abb19014fdfb1b7d368986ce061c22 /spec/gitlab_projects_spec.rb | |
parent | d5020c5cf8a151ac22af6c4d3caf35a5d04c7bdd (diff) | |
download | gitlab-shell-3739a840521b64d72fe7ed2c30a53bd3ee61b64a.tar.gz |
Remove branch functionality
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r-- | spec/gitlab_projects_spec.rb | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb index 0a1b0d6..47582f3 100644 --- a/spec/gitlab_projects_spec.rb +++ b/spec/gitlab_projects_spec.rb @@ -68,40 +68,6 @@ describe GitlabProjects do it { @gl_projects.instance_variable_get(:@full_path).should == "#{GitlabConfig.new.repos_path}/gitlab-ci.git" } end - describe :create_branch do - let(:gl_projects_create) { - build_gitlab_projects('import-project', repo_name, 'https://github.com/randx/six.git') - } - let(:gl_projects) { build_gitlab_projects('create-branch', repo_name, 'test_branch', 'master') } - - it "should create a branch" do - gl_projects_create.exec - gl_projects.exec - branch_ref = capture_in_tmp_repo(%W(git rev-parse test_branch)) - master_ref = capture_in_tmp_repo(%W(git rev-parse master)) - branch_ref.should == master_ref - end - end - - describe :rm_branch do - let(:gl_projects_create) { - build_gitlab_projects('import-project', repo_name, 'https://github.com/randx/six.git') - } - let(:gl_projects_create_branch) { - build_gitlab_projects('create-branch', repo_name, 'test_branch', 'master') - } - let(:gl_projects) { build_gitlab_projects('rm-branch', repo_name, 'test_branch') } - - it "should remove a branch" do - gl_projects_create.exec - gl_projects_create_branch.exec - branch_ref = capture_in_tmp_repo(%W(git rev-parse test_branch)) - gl_projects.exec - branch_del = capture_in_tmp_repo(%W(git rev-parse test_branch)) - branch_del.should_not == branch_ref - end - end - describe :create_tag do let(:gl_projects_create) { build_gitlab_projects('import-project', repo_name, 'https://github.com/randx/six.git') |