spec/spec_helper.rb in pessimize-0.0.3 vs spec/spec_helper.rb in pessimize-0.1.0

- old
+ new

@@ -34,10 +34,11 @@ def tmp_path root_path + "/tmp/" end def run(argument_string = '') - Open3.popen3 "ruby -I#{root_path}/lib #{bin_path} #{argument_string} > /dev/null" do |_, io_stdout, io_stderr, thr| + command = "ruby -I#{root_path}/lib #{bin_path} #{argument_string}" + Open3.popen3 command do |_, io_stdout, io_stderr, thr| @stdout = io_stdout.read @stderr = io_stderr.read @status = thr.value if thr end end