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

Version Path
perfmonger-0.10.2 spec/spec_helper.rb
perfmonger-0.10.1 spec/spec_helper.rb
perfmonger-0.9.0 spec/spec_helper.rb
perfmonger-0.8.2 spec/spec_helper.rb
perfmonger-0.8.1 spec/spec_helper.rb
perfmonger-0.8.0 spec/spec_helper.rb
perfmonger-0.7.1 spec/spec_helper.rb
perfmonger-0.7.0 spec/spec_helper.rb