spec/cli_helper.rb in ridgepole-0.7.3.beta vs spec/cli_helper.rb in ridgepole-0.7.3.beta2

- old
+ new

@@ -46,12 +46,12 @@ end def run_cli(options = {}) args = options[:args] || [] hook = options[:hook] || default_cli_hook - path = File.expand_path('../../bin/ridgepole', __FILE__) + path = File.expand_path('../bin/ridgepole', __dir__) - Tempfile.open(["#{File.basename __FILE__}.#{$$}", '.rb']) do |f| + Tempfile.open(["#{File.basename __FILE__}.#{$PROCESS_ID}", '.rb']) do |f| f.puts(hook) f.puts(File.read(path)) f.flush cmd = ([:ruby, f.path] + args).join(' ')