summaryrefslogtreecommitdiff
path: root/spec/gitlab_projects_spec.rb
diff options
context:
space:
mode:
authorSean Edge <asedge@gmail.com>2014-07-12 10:27:07 -0400
committerSean Edge <asedge@gmail.com>2014-07-12 10:27:07 -0400
commitdf90f59c25d9d42181af31eb7c9f4219ab7a36ba (patch)
tree440fb68731a5ffc145bfc150b85b1f3dfdf3c82d /spec/gitlab_projects_spec.rb
parentc0c082fa1d761bdb4c28d464899915f64f394fcf (diff)
downloadgitlab-shell-df90f59c25d9d42181af31eb7c9f4219ab7a36ba.tar.gz
Need to set config for user.name and user.email before creating the annotated tag.
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r--spec/gitlab_projects_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 5e53ebe..3101b0b 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -74,14 +74,14 @@ describe GitlabProjects do
context "annotated tag" do
msg = 'some message'
tag_name = 'test_annotated_tag'
+
let(:gl_projects) { build_gitlab_projects('create-tag', repo_name, tag_name, 'master', msg) }
it "should create an annotated tag" do
gl_projects_create.exec
- gl_projects.exec
-
system(*%W(git --git-dir=#{tmp_repo_path} config user.name Joe))
system(*%W(git --git-dir=#{tmp_repo_path} config user.email joe@smith.com))
+ gl_projects.exec
tag_ref = capture_in_tmp_repo(%W(git rev-parse #{tag_name}^{}))
master_ref = capture_in_tmp_repo(%W(git rev-parse master))