Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (9 sloc) 335 Bytes
if ENV['RAILS_ENV'] == 'test' && !%w{false none}.include?(ENV['BENCHMARK'])
processes = "ruby"
begin
pgid = `ps -p #{$$} -o pgid`.split("\n").last
processes = `ps -o command -g #{pgid}`
rescue StandardError;
end
require File.dirname(__FILE__) + "/lib/test_benchmark" unless processes =~ /autotest|textmate|watch/i
end