test/helper.rb
# called with one or more params, like skip_on :jruby, :windows
# optional suffix kwarg is appended to the skip message
# optional suffix bt should generally not used
called with one or more params, like skip_on :jruby, :windows
optional suffix kwarg is appended to the skip message
optional suffix bt should generally not used
called with one or more params like skip_on : jruby : windows optional suffix kwarg is appended to the skip message optional suffix bt should generally not used
def skip_on(*engs, suffix: '', bt: caller)
    skip_msg = false
    engs.each do |eng|
      skip_msg = case eng
        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"]
        when :ci       then "Skipped on ENV['CI']#{suffix}" if ENV["CI"]
        else false
      end
      skip skip_msg, bt if skip_msg
    end
  end
def skip_on ( * engs , suffix : '' , bt : caller ) skip_msg = false engs . each do | eng | skip_msg = case eng 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" ] when :ci then "Skipped on ENV['CI']#{suffix}" if ENV [ "CI" ] else false end skip skip_msg , bt if skip_msg end end
called with one or more params, like skip_on :jruby, :windows
optional suffix kwarg is appended to the skip message
optional suffix bt should generally not used
called with one or more params like skip_on : jruby : windows optional suffix kwarg is appended to the skip message optional suffix bt should generally not used
engs
<not_specific>
suffix
<not_specific>
bt
<not_specific>
caller
<not_specific>