Skip to content

Commit

Permalink
Workaround for an error when parsing heredoc with non-word delimiters
Browse files Browse the repository at this point in the history
Pending two specs until the following error in Parser 3.3.0.1 is resolved.
whitequark/parser#987
  • Loading branch information
koic committed Jan 7, 2024
1 parent 7adcf78 commit 5b08ee4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/rubocop/cop/naming/heredoc_delimiter_case_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@

context 'when using non-word delimiters' do
it 'does not register an offense' do
# FIXME: Pending until the following error in Parser 3.3.0.1 is resolved.
# https://github.com/whitequark/parser/pull/987
pending 'Prevents an error when using heredoc with non-word delimiters.'

expect_no_offenses(<<~RUBY)
<<-'+'
foo
Expand Down
4 changes: 4 additions & 0 deletions spec/rubocop/cop/naming/heredoc_delimiter_naming_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@

context 'when using non-word delimiters' do
it 'registers an offense' do
# FIXME: Pending until the following error in Parser 3.3.0.1 is resolved.
# https://github.com/whitequark/parser/pull/987
pending 'Prevents an error when using heredoc with non-word delimiters.'

expect_offense(<<~RUBY)
<<-'+'
foo
Expand Down

0 comments on commit 5b08ee4

Please sign in to comment.