lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-1.26.0 vs lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-1.27.0
- old
+ new
@@ -21,10 +21,13 @@
MSG = 'The first argument to describe should be '\
'the class or module being tested.'.freeze
def_node_matcher :valid_describe?, <<-PATTERN
- {(send {(const nil? :RSpec) nil?} :describe const ...) (send nil? :describe)}
+ {
+ (send {(const nil? :RSpec) nil?} :describe const ...)
+ (send {(const nil? :RSpec) nil?} :describe)
+ }
PATTERN
def_node_matcher :describe_with_metadata, <<-PATTERN
(send {(const nil? :RSpec) nil?} :describe
!const