Class: Sinatra::TestHarness
- Inherits:
-
Object
- Object
- Sinatra::TestHarness
- Includes:
- Test
- Defined in:
- lib/sinatra/test.rb
Constant Summary
Constants included from Test
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, #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