lib/rubocop/cop/rspec/describe_symbol.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/describe_symbol.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -15,14 +15,14 @@
# describe '#my_method' do
# # ...
# end
#
# @see https://github.com/rspec/rspec-core/issues/1610
- class DescribeSymbol < Cop
+ class DescribeSymbol < Base
MSG = 'Avoid describing symbols.'
def_node_matcher :describe_symbol?, <<-PATTERN
- (send #{RSPEC} :describe $sym ...)
+ (send #rspec? :describe $sym ...)
PATTERN
def on_send(node)
describe_symbol?(node) do |match|
add_offense(match)