Module: RackBox::SpecHelpers
- Defined in:
- lib/rackbox/spec/helpers.rb
Overview
Helper methods to include in specs that want to use blackbox testing
TODO For backwards compatibility, I would like to keep a SpecHelpers
module, but this needs to be renamed because this isn't spec
specific at all! it needs to be easy to RackBox::App.new(rack_app).request
or something like that (something generic)
This module has the RackBox::SpecHelpers#request method, which is the main method used by RackBox blackbox tests
Instance Method Summary collapse
-
#req(url, options = {}) ⇒ Object
(also: #request)
moved logic into RackBox#request, where it can easily be re-used.
Instance Method Details
#req(url, options = {}) ⇒ Object Also known as: request
moved logic into RackBox#request, where it can easily be re-used
16 17 18 |
# File 'lib/rackbox/spec/helpers.rb', line 16 def req url, = {} RackBox.request @rackbox_request, url, end |