Class: Sinatra::TestHarness

Inherits:
Object
  • Object
show all
Includes:
Test
Defined in:
lib/sinatra/test.rb

Constant Summary

Constants included from Test

Sinatra::Test::RACK_OPT_NAMES

Instance Attribute Summary

Attributes included from Test

#app, #request, #response

Instance Method Summary collapse

Methods included from Test

#body, #delete, #follow!, #get, #head, #method_missing, #param_string, #post, #put, #rack_opts, #respond_to?, #should, #status, #test_request

Constructor Details

#initialize(app = nil) ⇒ TestHarness

Returns a new instance of TestHarness.



107
108
109
# File 'lib/sinatra/test.rb', line 107

def initialize(app=nil)
  @app = app || Sinatra::Application
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sinatra::Test