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

Commit 1acd671

Browse files
committed
Skip feature broken on JRuby
1 parent 18d6e3b commit 1acd671

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

features/expectation_framework_integration/aggregating_failures.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Feature: Aggregating Failures
1919
end
2020
"""
2121

22-
@skip-when-diff-lcs-1.3
22+
@skip-when-diff-lcs-1.3 @broken-on-jruby
2323
Scenario: Use `aggregate_failures` block form
2424
Given a file named "spec/use_block_form_spec.rb" with:
2525
"""ruby

features/support/jruby.rb

+9
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@
66
block.call
77
end
88
end
9+
10+
Around "@broken-on-jruby" do |scenario, block|
11+
require 'rspec/support/ruby_features'
12+
if RSpec::Support::Ruby.jruby?
13+
skip_this_scenario "Skipping scenario #{scenario.name} not supported on JRuby"
14+
else
15+
block.call
16+
end
17+
end

0 commit comments

Comments
 (0)