File: test_helper.rb

package info (click to toggle)
ruby-memory-profiler 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: ruby: 1,128; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'memory_profiler'
require 'minitest/pride'
require 'minitest/autorun'
require_relative 'test_helpers'

FIXTURE_DIR = File.expand_path('fixtures', __dir__).freeze

def require_fixture_gem(name)
  lib_path = File.join(FIXTURE_DIR, 'gems', "#{name}-0.1.0", 'lib')
  $LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
  require name
end