Class: RuboCop::Cop::RSpec::DescribeSymbol
- Defined in:
- lib/rubocop/cop/rspec/describe_symbol.rb
Overview
Avoid describing symbols.
Constant Summary collapse
- MSG =
'Avoid describing symbols.'
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
27 28 29 30 31 |
# File 'lib/rubocop/cop/rspec/describe_symbol.rb', line 27 def on_send(node) describe_symbol?(node) do |match| add_offense(match) end end |