Skip to content

Commit

Permalink
Try again to fix a test for JRuby
Browse files Browse the repository at this point in the history
Fixing a regular expression used in a test.
  • Loading branch information
enkessler committed May 26, 2020
1 parent 10b2777 commit 61f232b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/rspec/spec/integration/parsing_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class << self
it 'correctly bubbles up parsing errors', :if => gherkin?(2) do
# A different error is thrown on JRuby
if RUBY_PLATFORM == "java"
expect { nodule.parse_text('bad file') }.to raise_error(/Java::GherkinLexer.*_FEATURE_END_/)
expect { nodule.parse_text('bad file') }.to raise_error(/Java::GherkinLexer.*_FEATURE_END_/m)
else
expect { nodule.parse_text('bad file') }.to raise_error(/Gherkin::Lexer::LexingError.*error on line 1/)
end
Expand Down

0 comments on commit 61f232b

Please sign in to comment.