Permalink
Browse files

IO.popen doesn't take Array argument in Ruby 1.8.7

refs #176
  • Loading branch information...
1 parent bb80506 commit 3b872c617ba73eb3ef2f0d46e1cc6560ec28c25f @niklasb niklasb committed with halogenandtoast Oct 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capybara/driver/webkit/browser.rb
@@ -129,7 +129,7 @@ def register_shutdown_hook
def server_pipe_and_pid(server_path)
cmdline = [server_path]
cmdline << "--ignore-ssl-errors" if @ignore_ssl_errors
- pipe = IO.popen(cmdline)
+ pipe = IO.popen(cmdline.join(" "))
[pipe, pipe.pid]
end

0 comments on commit 3b872c6

Please sign in to comment.