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

Commit

Permalink
Skip feature broken on JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jul 17, 2024
1 parent 18d6e3b commit dc7c3de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Feature: Aggregating Failures
end
"""

@skip-when-diff-lcs-1.3
@skip-when-diff-lcs-1.3 @broken-on-juby
Scenario: Use `aggregate_failures` block form
Given a file named "spec/use_block_form_spec.rb" with:
"""ruby
Expand Down
9 changes: 9 additions & 0 deletions features/support/jruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dc7c3de

Please sign in to comment.