Skip to content

Commit

Permalink
Fix jruby test runner by checking ruby version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Sep 7, 2023
1 parent 25d26b2 commit 7a19429
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ namespace :test do
spec_arguments = args.task_args

appraisals = spec_metadata.select do |_, rubies|
(RUBY_PLATFORM == "java" && rubies.include?("✅ jruby")) || rubies.include?("✅ #{ruby_version}")
if RUBY_PLATFORM == "java"
rubies.include?("✅ #{ruby_version}") && rubies.include?("✅ jruby")
else
rubies.include?("✅ #{ruby_version}")
end
end

appraisals.each do |appraisal_group, _|
Expand Down

0 comments on commit 7a19429

Please sign in to comment.