diff --git a/features/expectation_framework_integration/aggregating_failures.feature b/features/expectation_framework_integration/aggregating_failures.feature index 107eb65525..2426069933 100644 --- a/features/expectation_framework_integration/aggregating_failures.feature +++ b/features/expectation_framework_integration/aggregating_failures.feature @@ -19,7 +19,7 @@ Feature: Aggregating Failures end """ - @skip-when-diff-lcs-1.3 + @skip-when-diff-lcs-1.3 @broken-on-jruby Scenario: Use `aggregate_failures` block form Given a file named "spec/use_block_form_spec.rb" with: """ruby diff --git a/features/support/jruby.rb b/features/support/jruby.rb index 54467bb330..7618c68e2f 100644 --- a/features/support/jruby.rb +++ b/features/support/jruby.rb @@ -6,3 +6,12 @@ block.call end end + +Around "@broken-on-jruby" do |scenario, block| + require 'rspec/support/ruby_features' + if RSpec::Support::Ruby.jruby? + skip_this_scenario "Skipping scenario #{scenario.name} not supported on JRuby" + else + block.call + end +end