Commit 42571190 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use less shell commands in gitlab_projects_spec.rb

parent e71fcd9e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment