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 ...@@ -179,8 +179,8 @@ describe GitlabProjects do
before do before do
FileUtils.mkdir_p(tmp_repo_path) FileUtils.mkdir_p(tmp_repo_path)
system("git init --bare #{tmp_repo_path}") system(*%W(git init --bare #{tmp_repo_path}))
system("touch #{tmp_repo_path}/refs/heads/stable") FileUtils.touch(File.join(tmp_repo_path, "refs/heads/stable"))
File.read(File.join(tmp_repo_path, 'HEAD')).strip.should == 'ref: refs/heads/master' File.read(File.join(tmp_repo_path, 'HEAD')).strip.should == 'ref: refs/heads/master'
end 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