Method: Transpec::Syntax::RaiseError#remove_error_specification_with_negative_expectation!
- Defined in:
- lib/transpec/syntax/raise_error.rb
#remove_error_specification_with_negative_expectation! ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/transpec/syntax/raise_error.rb', line 15 def remove_error_specification_with_negative_expectation! return if positive? _receiver_node, _method_name, *arg_nodes = *node return if arg_nodes.empty? remove(parentheses_range) register_record end |