From 7a19429e39e495ca01f9f42f46e9717add218dd9 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Thu, 7 Sep 2023 21:08:11 +0200 Subject: [PATCH] Fix jruby test runner by checking ruby version as well --- Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 7adaf137..34a2bf8d 100644 --- a/Rakefile +++ b/Rakefile @@ -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, _|