Module: Filewatcher::CLI::SpecHelper

Extended by:
SpecHelper
Includes:
SpecHelper
Included in:
SpecHelper, ShellWatchRun
Defined in:
lib/filewatcher/cli/spec_helper.rb,
lib/filewatcher/cli/spec_helper/shell_watch_run.rb

Overview

Helper for CLI specs

Defined Under Namespace

Classes: ShellWatchRun

Constant Summary collapse

ENVIRONMENT_SPECS_COEFFICIENTS =
{
  lambda do
    RUBY_ENGINE == 'jruby' &&
      is_a?(Filewatcher::CLI::SpecHelper::ShellWatchRun)
  end => 2,
  lambda do
    RUBY_ENGINE == 'jruby' &&
      ENV.fetch('CI', false) &&
      is_a?(Filewatcher::CLI::SpecHelper::ShellWatchRun)
  end => 1.5,
  lambda do
    RUBY_ENGINE == 'truffleruby' &&
      ENV.fetch('CI', false) &&
      is_a?(Filewatcher::CLI::SpecHelper::ShellWatchRun)
  end => 3
}.freeze

Instance Method Summary collapse

Instance Method Details

#environment_specs_coefficientsObject



28
29
30
# File 'lib/filewatcher/cli/spec_helper.rb', line 28

def environment_specs_coefficients
  @environment_specs_coefficients ||= super.merge ENVIRONMENT_SPECS_COEFFICIENTS
end