module DerailSpecs

Tons of this server configuration stuff is copied from: github.com/testdouble/cypress-rails

Constants

VERSION

Public Class Methods

configuration() click to toggle source
# File lib/derail_specs.rb, line 8
def self.configuration
  @configuration ||= Struct
                     .new(
                       :command,
                       :host,
                       :port,
                       keyword_init: true,
                     )
                     .new(
                       host: '127.0.0.1',
                       port: 3001,
                     )
end
configure() { |configuration| ... } click to toggle source
# File lib/derail_specs.rb, line 22
def self.configure
  yield(configuration)
end
hooks() click to toggle source
# File lib/derail_specs/initializer_hooks.rb, line 2
def self.hooks
  InitializerHooks.instance
end