Module: EvilSystems

Defined in:
lib/evil_systems.rb,
lib/evil_systems/engine.rb,
lib/evil_systems/helpers.rb,
lib/evil_systems/version.rb,
lib/evil_systems/settings.rb,
lib/evil_systems/remote_chrome.rb,
lib/evil_systems/cuprite_helpers.rb,
lib/evil_systems/session_helpers.rb,
lib/evil_systems/register_cuprite.rb,
lib/evil_systems/precompile_assets.rb

Overview

Add shortcuts for cuprite-specific debugging helpers

Defined Under Namespace

Modules: CupriteHelpers, Helpers, PrecompileAssets, RegisterCuprite, RemoteChrome, SessionHelpers, Settings Classes: Engine

Constant Summary collapse

VERSION =
"1.1.5"

Class Method Summary collapse

Class Method Details

.initial_setup(task: "assets:precompile", silent: true, skip_task: false, driver_options: {}) ⇒ Object

To be called before module ApplicationSystemTest

Parameters:

  • task (String, nil) (defaults to: "assets:precompile")

    (“assets:precompile”) - the precompile task to run

  • silent (Boolean) (defaults to: true)

    (true) - silence build output and only show asset compilation and time spent compiling.

Returns:

  • void

See Also:



14
15
16
17
18
19
20
21
22
# File 'lib/evil_systems.rb', line 14

def self.initial_setup(task: "assets:precompile", silent: true, skip_task: false, driver_options: {})
  require "capybara"
  Settings.initial_setup
  RegisterCuprite.initial_setup(driver_options: driver_options)

  return if skip_task

  PrecompileAssets.initial_setup(task: task, silent: silent)
end