Skip to content

Commit

Permalink
Merge pull request #2017 from rubocop/rmv
Browse files Browse the repository at this point in the history
Remove an example which is a syntax error in Ruby's parser
  • Loading branch information
ydah authored Dec 26, 2024
2 parents 4f9fb81 + 8cfe4c5 commit 162d91a
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions spec/rubocop/cop/rspec/pending_without_reason_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 162d91a

Please sign in to comment.