diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-07 17:13:30 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-07 17:13:30 +0100 |
commit | 42571190d1e6f9ae957c66d2786d793d29ae7c2e (patch) | |
tree | 514e6b5b96766abb2a9b9848957c65945e368bbd /spec/gitlab_projects_spec.rb | |
parent | e71fcd9eec529b40e87965924a1b87ab7bb86528 (diff) | |
download | gitlab-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.rb | 4 |
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 |