Class: Sinatra::TestHarness
- Inherits:
-
Object
- Object
- Sinatra::TestHarness
- Includes:
- Test
- Defined in:
- lib/sinatra/test.rb
Instance Attribute Summary
Attributes included from Test
Instance Method Summary collapse
-
#initialize(app = nil) ⇒ TestHarness
constructor
A new instance of TestHarness.
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