Class: RuboCop::Cop::Sevencop::RSpecPendingOnlyExampleGroup
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Sevencop::RSpecPendingOnlyExampleGroup
- Defined in:
- lib/rubocop/cop/sevencop/rspec_pending_only_example_group.rb
Overview
Remove pending-only test files.
Constant Summary collapse
- MSG =
'Remove pending-only test files.'- RESTRICT_ON_SEND =
i[ describe ].freeze
Instance Method Summary collapse
- #on_send(node) ⇒ Object (also: #on_csend)
Instance Method Details
#on_send(node) ⇒ Object Also known as: on_csend
20 21 22 23 24 25 |
# File 'lib/rubocop/cop/sevencop/rspec_pending_only_example_group.rb', line 20 def on_send(node) block_node = node.parent return unless pending_only_example_group?(block_node) add_offense(block_node) end |