Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 08ef2ee

Browse files
committed
These examples are fixed on JRuby 9.2.x.x
1 parent cc542e6 commit 08ef2ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/rspec/core/formatters/exception_presenter_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,9 @@ def read_failed_lines
509509

510510
context 'and the line count does not exceed RSpec.configuration.max_displayed_failure_line_count' do
511511
it 'returns all the lines' do
512-
pending 'https://github.com/jruby/jruby/issues/4737' if RSpec::Support::Ruby.jruby_9000?
512+
if RSpec::Support::Ruby.jruby_9000? && RSpec::Support::Ruby.jruby_version < '9.2.0.0'
513+
pending 'https://github.com/jruby/jruby/issues/4737'
514+
end
513515
expect(read_failed_lines).to eq([
514516
" expect('RSpec').to be_a(String).",
515517
" and start_with('R').",
@@ -524,7 +526,9 @@ def read_failed_lines
524526
end
525527

526528
it 'returns the lines without exceeding the max count' do
527-
pending 'https://github.com/jruby/jruby/issues/4737' if RSpec::Support::Ruby.jruby_9000?
529+
if RSpec::Support::Ruby.jruby_9000? && RSpec::Support::Ruby.jruby_version < '9.2.0.0'
530+
pending 'https://github.com/jruby/jruby/issues/4737'
531+
end
528532
expect(read_failed_lines).to eq([
529533
" expect('RSpec').to be_a(String).",
530534
" and start_with('R')."

0 commit comments

Comments
 (0)