lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-1.34.0 vs lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-1.34.1

- old
+ new

@@ -45,13 +45,15 @@ # # it { expect(FooClass.new.double_that).to eq(4) } # end # # # good - anonymous class, no constant needs to be defined - # let(:foo_class) do - # Class.new(described_class) do - # def double_that - # some_base_method * 2 + # describe SomeClass do + # let(:foo_class) do + # Class.new(described_class) do + # def double_that + # some_base_method * 2 + # end # end # end # # it { expect(foo_class.new.double_that).to eq(4) } # end