Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rack'
- app = ->(env){ [200, {}, 'Hello, World!'] }
- request = Rack::MockRequest.new(app)
- response = request.get('/')
- puts response.body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement