| Module | Sinatra::TestMethods |
| In: |
lib/sinatra/test_methods.rb
|
These methods are for integration testing without an internet connection. They are available in Test::Unit::TestCase and when in Irb.
# File lib/sinatra/test_methods.rb, line 29
29: def response
30: @response || Rack::MockResponse.new(404, {}, '')
31: end