module ParallelTests
def bundler_enabled?
def bundler_enabled? return true if Object.const_defined?(:Bundler) previous = nil current = File.expand_path(Dir.pwd) until !File.directory?(current) || current == previous filename = File.join(current, "Gemfile") return true if File.exist?(filename) previous = current current = File.expand_path("..", current) end false end