lib/rubocop/cop/rspec/repeated_description.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/repeated_description.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module RuboCop
module Cop
module RSpec
# Check for repeated description strings in example groups.
#
@@ -26,10 +28,10 @@
# # ...
# end
# end
#
class RepeatedDescription < Cop
- MSG = "Don't repeat descriptions within an example group.".freeze
+ MSG = "Don't repeat descriptions within an example group."
def on_block(node)
return unless example_group?(node)
repeated_descriptions(node).each do |repeated_description|