Files
klayout/testdata/vendor/ruby/test/unit/auto-runner-loader.rb
T
Matthias Koefferlein 585d0941bb RBA Unit test enhancements
- Include a copy of the unit test framework so we're no longer
  depending on incompatible versions for Ruby 1 and 2.
- Avoid duplication of path entries in unit tests
2017-07-23 23:03:21 +02:00

18 lines
379 B
Ruby

require "test/unit/test-suite-creator"
module Test
module Unit
module AutoRunnerLoader
@loaded = false
class << self
def check(test_case, method_name)
return if @loaded
return unless TestSuiteCreator.test_method?(test_case, method_name)
require "test/unit"
@loaded = true
end
end
end
end
end