spec/rubocop/cop/rspec/described_class_spec.rb in rubocop-rspec-1.32.0 vs spec/rubocop/cop/rspec/described_class_spec.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + RSpec.describe RuboCop::Cop::RSpec::DescribedClass, :config do subject(:cop) { described_class.new(config) } let(:cop_config) do { 'EnforcedStyle' => enforced_style } @@ -110,19 +112,20 @@ it 'ignores class if the scope is changing' do expect_no_offenses(<<-RUBY) describe MyClass do Class.new { foo = MyClass } Module.new { bar = MyClass } + Struct.new { lol = MyClass } def method include MyClass end class OtherClass include MyClass end - module MyModle + module MyModule include MyClass end end RUBY end