Class: Sinatra::TestHarness

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

Instance Attribute Summary

Attributes included from Test

#app, #request, #response

Instance Method Summary collapse

Methods included from Test

#body, #delete, deprecate, #follow!, #get, #head, #make_request, #method_missing, #post, #put, #respond_to?, #should, #status

Constructor Details

#initialize(app = nil) ⇒ TestHarness

Returns a new instance of TestHarness.



117
118
119
# File 'lib/sinatra/test.rb', line 117

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