lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-1.5.1 vs lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-1.5.2

- old
+ new

@@ -1,6 +1,5 @@ -# encoding: utf-8 # frozen_string_literal: true module RuboCop module Cop module RSpec @@ -27,12 +26,12 @@ MSG = 'Do not use multiple top level describes - ' \ 'try to nest them.'.freeze def on_top_level_describe(node, _args) return if single_top_level_describe? - return unless top_level_nodes.first == node + return unless top_level_nodes.first.equal?(node) - add_offense(node, :expression, MSG) + add_offense(node, :expression) end end end end end