lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -34,14 +34,14 @@ # class DescribedClass < Cop include RuboCop::RSpec::TopLevelDescribe include ConfigurableEnforcedStyle - DESCRIBED_CLASS = 'described_class'.freeze - MSG = 'Use `%<replacement>s` instead of `%<src>s`.'.freeze + DESCRIBED_CLASS = 'described_class' + MSG = 'Use `%<replacement>s` instead of `%<src>s`.' def_node_matcher :common_instance_exec_closure?, <<-PATTERN - (block (send (const nil? {:Class :Module}) :new ...) ...) + (block (send (const nil? {:Class :Module :Struct}) :new ...) ...) PATTERN def_node_matcher :rspec_block?, RuboCop::RSpec::Language::ALL.block_pattern