Sha256: e29ee13b302fb9af8d78203f99705b890a45e402734bf46bb8e309871a737176

Contents?: true

Size: 482 Bytes

Versions: 7

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

run ->(env) {
  sleep 0.2
  request = Rack::Request.new(env)
  if request.path == "/foobar"
    [
      200,
      { "Content-Type" => "text/html" },
      [
        <<~HTML
          <html>
            <head><title>Dummy app</title></head>
            <body>
              <h1>Hello Dummy!</h1>
            </body>
          </html>
        HTML
      ]
    ]
  else
    [
      404,
      { "Content-Type" => "text/html" },
      [""]
    ]
  end
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cypress_rails-0.9.3 spec/support/dummy_healthcheck/config.ru
cypress_rails-0.9.2 spec/support/dummy_healthcheck/config.ru
cypress_rails-0.9.1 spec/support/dummy_healthcheck/config.ru
cypress_rails-0.9.0 spec/support/dummy_healthcheck/config.ru
cypress_rails-0.8.0 spec/support/dummy_healthcheck/config.ru
cypress_rails-0.7.0 spec/support/dummy_healthcheck/config.ru
cypress_rails-0.6.0 spec/support/dummy_healthcheck/config.ru