Method: Rails::TestUnit::TestParser#on_def
- Defined in:
- railties/lib/rails/test_unit/test_parser.rb
#on_def(begin_line) ⇒ Object
method test e.g. ‘def test_some_description` This event’s first argument gets the ‘ident` node containing the method name, which we have overridden to return the line number of the ident instead.
79 80 81 |
# File 'railties/lib/rails/test_unit/test_parser.rb', line 79 def on_def(begin_line, *) @begins_to_ends[begin_line] = lineno end |