summaryrefslogtreecommitdiff
path: root/spec/gitlab_projects_spec.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-07 17:13:30 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-07 17:13:30 +0100
commit42571190d1e6f9ae957c66d2786d793d29ae7c2e (patch)
tree514e6b5b96766abb2a9b9848957c65945e368bbd /spec/gitlab_projects_spec.rb
parente71fcd9eec529b40e87965924a1b87ab7bb86528 (diff)
downloadgitlab-shell-42571190d1e6f9ae957c66d2786d793d29ae7c2e.tar.gz
Use less shell commands in gitlab_projects_spec.rb
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 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