find test_* methods in base classes too

this makes it prossible to structure tests better
and even used "mixin" of modules with test_* methods
This commit is contained in:
Johan Holmberg 2017-03-23 10:26:27 +01:00
parent 04c31df479
commit 9a899213f0

View File

@ -184,7 +184,7 @@ module Cmdtest
@runtime_class, @adm_file, @runner = runtime_class, adm_file, runner
tested = runner.opts.test
@adm_methods = @runtime_class.public_instance_methods(false).sort.select do |name|
@adm_methods = @runtime_class.public_instance_methods(true).sort.select do |name|
name =~ /^test_/
end.map do |name|
TestMethod.new(name, self, runner)