Class: RuboCop::Cop::RSpec::Focus
- Defined in:
- lib/rubocop/cop/rspec/focus.rb
Overview
Checks if examples are focused.
Constant Summary collapse
- MSG =
'Focused spec found.'
Instance Method Summary collapse
Methods inherited from Base
inherited, #on_new_investigation
Methods included from RSpec::Language::NodePattern
Instance Method Details
#on_send(node) ⇒ Object
45 46 47 48 49 |
# File 'lib/rubocop/cop/rspec/focus.rb', line 45 def on_send(node) (node) do |focus| add_offense(focus) end end |