From d4fd8e2ef6add82135d237c80b024c3865d6dd37 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Mon, 26 Aug 2019 12:21:00 -0500 Subject: [PATCH] test/helper.rb - add darwin to TestSkips logic (#1933) --- test/helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helper.rb b/test/helper.rb index 74cccc47..e7afdbe7 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -95,6 +95,7 @@ module TestSkips skip_msg = false engs.each do |eng| skip_msg = case eng + when :darwin then "Skipped on darwin#{suffix}" if RUBY_PLATFORM[/darwin/] when :jruby then "Skipped on JRuby#{suffix}" if Puma.jruby? when :windows then "Skipped on Windows#{suffix}" if Puma.windows? when :appveyor then "Skipped on Appveyor#{suffix}" if ENV["APPVEYOR"] @@ -108,6 +109,7 @@ module TestSkips # called with only one param def skip_unless(eng, bt: caller) skip_msg = case eng + when :darwin then "Skip unless darwin" unless RUBY_PLATFORM[/darwin/] when :jruby then "Skip unless JRuby" unless Puma.jruby? when :windows then "Skip unless Windows" unless Puma.windows? else false