lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-1.28.0

- old
+ new

@@ -25,10 +25,10 @@ METHOD_STRING_MATCHER = /\A[\#\.].+/ def on_top_level_describe(_node, (_, second_arg)) return unless second_arg && second_arg.str_type? - return if METHOD_STRING_MATCHER =~ one(second_arg.children) + return if METHOD_STRING_MATCHER =~ second_arg.str_content add_offense(second_arg, location: :expression) end end end