summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-11 10:12:00 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-15 09:13:45 +0200
commit7e79354d42518d5e0f6978c24b9c32d55cb22940 (patch)
tree268598423ff61e4048b8800802ddf0708487fb7a
parent2f5c5f61533cee28f5ff7693b90a65f4bf5eaf61 (diff)
downloadgitlab-shell-7e79354d42518d5e0f6978c24b9c32d55cb22940.tar.gz
Invoke IO.popen correctly for Ruby 1.9.3
Before this change, tests in gitlab_projects_spec were passing on Ruby 2.0.0 but not on 1.9.3.
-rw-r--r--spec/gitlab_projects_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 946e5c6..64cb63e 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -332,6 +332,6 @@ describe GitlabProjects do
end
def capture_in_tmp_repo(cmd)
- IO.popen(cmd, chdir: tmp_repo_path).read.strip
+ IO.popen([*cmd, {chdir: tmp_repo_path}]).read.strip
end
end