Sha256: 17def06fde1e5ade7f0f0cbc26702c52455885966819a59885d2701127262d75

Contents?: true

Size: 595 Bytes

Versions: 5

Compression:

Stored size: 595 Bytes

Contents

require File.expand_path '../test_helper.rb', __FILE__

class TestMabmapper < Minitest::Test
  def setup
    @engine = load_engine!
  end
end

tests_to_run = ENV['TESTS'].split unless ENV['TESTS'].nil?
  
# require and include all mabmapper test modules
Dir.glob(File.expand_path '../mabmapper/test_*.rb', __FILE__).each do |filename|
  if tests_to_run.nil? || tests_to_run.any? { |name_of_test| "test_#{name_of_test}" == File.basename(filename, '.rb') }
    require filename
    TestMabmapper.instance_eval do
      include File.basename(filename, '.rb').camelize.constantize
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mabmapper-2.0.4 test/test_mabmapper.rb
mabmapper-2.0.3 test/test_mabmapper.rb
mabmapper-2.0.2 test/test_mabmapper.rb
mabmapper-2.0.1 test/test_mabmapper.rb
mabmapper-2.0.0 test/test_mabmapper.rb