Method: TLDR::ClassUtil.gather_tests

Defined in:
lib/tldr/class_util.rb

.gather_tests(klass) ⇒ Object



9
10
11
12
13
# File 'lib/tldr/class_util.rb', line 9

def self.gather_tests klass
  klass.instance_methods.grep(/^test_/).sort.map { |method|
    Test.new(klass, method)
  }
end