method
test_method?
1.2.8 -
Show latest stable
-
0 notes -
Class: Test::Unit::TestCase
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
test_method?(method_name)
public
Hide source
# File lib/spec/interop/test/unit/testcase.rb, line 33 def self.test_method?(method_name) method_name =~ /^test[_A-Z]./ && ( instance_method(method_name).arity == 0 || instance_method(method_name).arity == -1 ) end