lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-1.3.1 vs lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-1.4.0

- old
+ new

@@ -1,6 +1,7 @@ # encoding: utf-8 +# frozen_string_literal: true module RuboCop module Cop module RSpec # Checks for multiple top level describes. They should be nested if it is @@ -21,16 +22,17 @@ # end # end class MultipleDescribes < Cop include RuboCop::RSpec::TopLevelDescribe - MESSAGE = 'Do not use multiple top level describes - try to nest them.' + 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 - add_offense(node, :expression, MESSAGE) + add_offense(node, :expression, MSG) end end end end end