Class: Hanami::Minitest::RequestTest

Inherits:
Test
  • Object
show all
Includes:
Rack::Test::Methods
Defined in:
lib/hanami/minitest/request_test.rb,
lib/hanami/minitest/generators/templates/support_requests.rb

Overview

Base test class for request tests in Hanami applications.

Includes Rack::Test::Methods for making HTTP requests to the application.

Since:

  • 2.0.0

Direct Known Subclasses

RootTest

Instance Method Summary collapse

Methods included from Test::ClassMethods

#setup, #teardown, #test

Instance Method Details

#appHanami::Application

Defines the app for Rack::Test requests.

Returns:

  • (Hanami::Application)

    the Hanami application

Since:

  • 2.0.0



22
23
24
# File 'lib/hanami/minitest/request_test.rb', line 22

def app
  Hanami.app
end