lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-1.3.1 vs lib/rubocop/cop/rspec/describe_class.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
# Check that the first argument to the top level describe is the tested
@@ -22,10 +23,10 @@
REQUEST_PAIR = s(:pair, s(:sym, :type), s(:sym, :request))
FEATURE_PAIR = s(:pair, s(:sym, :type), s(:sym, :feature))
MESSAGE = 'The first argument to describe should be the class or ' \
- 'module being tested.'
+ 'module being tested.'.freeze
def on_top_level_describe(_node, args)
return if args[0] && args[0].type == :const
return if args[1..-1].any? do |arg|