From 3f6e26c7cec16b28e0b565ff9d37a36b24d743e3 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Thu, 15 Jul 2021 20:47:17 +0100 Subject: [PATCH] Skip scenario that fails mostly on jruby 17 --- features/command_line/bisect.feature | 2 +- features/support/jruby.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/features/command_line/bisect.feature b/features/command_line/bisect.feature index 82de8d133b..b5aed8962b 100644 --- a/features/command_line/bisect.feature +++ b/features/command_line/bisect.feature @@ -1,4 +1,4 @@ -@with-clean-spec-opts +@with-clean-spec-opts @broken-on-jruby-17 Feature: Bisect RSpec's `--order random` and `--seed` options help surface flickering examples that only fail when one or more other examples are executed first. It can be very difficult to isolate the exact combination of examples that triggers the failure. The `--bisect` flag helps solve that problem. diff --git a/features/support/jruby.rb b/features/support/jruby.rb index 7bdad62c6d..ef3304d383 100644 --- a/features/support/jruby.rb +++ b/features/support/jruby.rb @@ -2,3 +2,8 @@ require 'rspec/support/ruby_features' block.call unless RSpec::Support::Ruby.jruby_9000? end + +Around "@broken-on-jruby-17" do |scenario, block| + require 'rspec/support/ruby_features' + block.call unless !RSpec::Support::Ruby.jruby? || RSpec::Support::Ruby.jruby_9000? +end