summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 306597e..dbdbfd9 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -179,8 +179,8 @@ describe GitlabProjects do
before do
FileUtils.mkdir_p(tmp_repo_path)
- system("git init --bare #{tmp_repo_path}")
- system("touch #{tmp_repo_path}/refs/heads/stable")
+ system(*%W(git init --bare #{tmp_repo_path}))
+ FileUtils.touch(File.join(tmp_repo_path, "refs/heads/stable"))
File.read(File.join(tmp_repo_path, 'HEAD')).strip.should == 'ref: refs/heads/master'
end