lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-2.31.0 vs lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-3.0.0.pre

- old
+ new

@@ -28,10 +28,10 @@ MSG = 'Do not use multiple top-level example groups - try to nest them.' def on_top_level_group(node) top_level_example_groups = - top_level_groups.select(&method(:example_group?)) + top_level_groups.select { |group| example_group?(group) } return if top_level_example_groups.one? return unless top_level_example_groups.first.equal?(node) add_offense(node.send_node)