diff --git a/spec/rubocop/cop/rspec/pending_without_reason_spec.rb b/spec/rubocop/cop/rspec/pending_without_reason_spec.rb index 9e678e859..4c6a70f91 100644 --- a/spec/rubocop/cop/rspec/pending_without_reason_spec.rb +++ b/spec/rubocop/cop/rspec/pending_without_reason_spec.rb @@ -300,35 +300,6 @@ end RUBY end - - context 'with a numblock' do - it 'registers offense' do - expect_offense(<<~RUBY) - RSpec.describe Foo do - pending - ^^^^^^^ Give the reason for pending. - skip - ^^^^ Give the reason for skip. - _1 - context 'when something' do - _1 - pending - ^^^^^^^ Give the reason for pending. - skip - ^^^^ Give the reason for skip. - it 'does something' do - _1 - skip - ^^^^ Give the reason for skip. - pending - ^^^^^^^ Give the reason for pending. - _1 - end - end - end - RUBY - end - end end context 'when pending/skip inside conditional' do