From 3c3792330c0d9450aaa2645e9457f67bb955b46d Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Tue, 2 Dec 2014 15:31:57 -0600 Subject: [PATCH] Fix RUBYOPT to be debugger compatible MSP-11671 RUBYOPT needs to be appended to so that debugger is always first. --- features/support/hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/support/hooks.rb b/features/support/hooks.rb index fe654262ed..cffa71fc35 100644 --- a/features/support/hooks.rb +++ b/features/support/hooks.rb @@ -22,5 +22,5 @@ Before do |scenario| simplecov_setup_pathname = Pathname.new(__FILE__).expand_path.parent.join('simplecov_setup') # set environment variable so child processes will merge their coverage data with parent process's coverage data. - set_env('RUBYOPT', "-r#{simplecov_setup_pathname} #{ENV['RUBYOPT']}") + set_env('RUBYOPT', "#{ENV['RUBYOPT']} -r#{simplecov_setup_pathname}") end