spec/rubocop/cop/rspec/described_class_spec.rb in rubocop-rspec-1.8.0 vs spec/rubocop/cop/rspec/described_class_spec.rb in rubocop-rspec-1.9.0

- old
+ new

@@ -158,11 +158,11 @@ ^^^^^^^^^^^^^^^^^^^^ Use `described_class` instead of `MyNamespace::MyClass` end RUBY end - it 'does not flag violations within a scope change' do + it 'does not flag violations within a class scope change' do expect_no_violations(<<-RUBY) describe MyNamespace::MyClass do before do class Foo thing = MyNamespace::MyClass.new @@ -170,10 +170,10 @@ end end RUBY end - it 'does not flag violations within a scope change' do + it 'does not flag violations within a hook scope change' do expect_no_violations(<<-RUBY) describe do before do MyNamespace::MyClass.new end