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