spec/rubocop/cop/rspec/cop_spec.rb in rubocop-rspec-1.33.0 vs spec/rubocop/cop/rspec/cop_spec.rb in rubocop-rspec-1.34.0

- old
+ new

@@ -19,16 +19,16 @@ RuboCop::Config.new(rubocop_config, 'fake_cop_config.yml') end let(:fake_cop) do stub_const('RuboCop::RSpec', Module.new) - # rubocop:disable ClassAndModuleChildren + # rubocop:disable ClassAndModuleChildren, RSpec/LeakyConstantDeclaration class RuboCop::RSpec::FakeCop < described_class def on_send(node) - add_offense(node, location: :expression, message: 'I flag everything') + add_offense(node, message: 'I flag everything') end end - # rubocop:enable ClassAndModuleChildren + # rubocop:enable ClassAndModuleChildren, RSpec/LeakyConstantDeclaration RuboCop::RSpec::FakeCop end let(:rspec_patterns) { ['_spec.rb$', '(?:^|/)spec/'] }