Sha256: e08c4b7880e0d8d98cfddfb33b4618e6d3707ecfcf3ca0ebbf25e1e6bc424fda
Contents?: true
Size: 725 Bytes
Versions: 8
Compression:
Stored size: 725 Bytes
Contents
$LOAD_PATH << File.expand_path('../../lib', __FILE__) if ENV['RUBYLIB'] ENV['RUBYLIB'] += ":" else ENV['RUBYLIB'] = "" end ENV['RUBYLIB'] += File.expand_path('../../lib', __FILE__) TEST_DATA_DIR = File.expand_path('../data', __FILE__) require 'perfmonger' require 'tempfile' require 'pathname' Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).each { |f| require_relative f } def data_file(rel_path) File.expand_path(rel_path, TEST_DATA_DIR) end def perfmonger_bin File.expand_path('../../bin/perfmonger', __FILE__) end RSpec.configure do |config| # RSpec config here end def skip_if_proc_is_not_available if ! File.exists?("/proc/diskstats") skip "/proc/diskstats is not available." end end
Version data entries
8 entries across 8 versions & 1 rubygems