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.'.freeze
Constants inherited from Cop
Cop::DEFAULT_CONFIGURATION, Cop::DEFAULT_PATTERN_RE
Constants included from RSpec::Language
Instance Method Summary collapse
Methods inherited from Cop
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, location: :expression) end end |