Sha256: 7ff3d2a6f220bcb69a0a6800a726a2b55537f1d719920be24a2bf404827382fd
Contents?: true
Size: 832 Bytes
Versions: 6
Compression:
Stored size: 832 Bytes
Contents
require 'parallel' require 'parallel_tests/version' require 'parallel_tests/grouper' require 'parallel_tests/railtie' if defined? Rails::Railtie module ParallelTests def self.determine_number_of_processes(count) [ count, ENV['PARALLEL_TEST_PROCESSORS'], Parallel.processor_count ].detect{|c| not c.to_s.strip.empty? }.to_i end # copied from http://github.com/carlhuda/bundler Bundler::SharedHelpers#find_gemfile def self.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.exists?(filename) current, previous = File.expand_path("..", current), current end false end end
Version data entries
6 entries across 6 versions & 2 rubygems