Sha256: 8cbcfeac1b1ba8ef724d4caf1c6538930cf4f9f23f271fb58dc2793239e52516
Contents?: true
Size: 332 Bytes
Versions: 3
Compression:
Stored size: 332 Bytes
Contents
require 'rack/test' module Airborne module RackTestRequester def make_request(method, url, options = {}) browser = Rack::Test::Session.new(Rack::MockSession.new(Airborne.configuration.rack_app)) browser.send(method, url, options[:body] || {}, options[:headers] || {}) browser.last_response end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
airborne-0.1.1 | lib/airborne/rack_test_requester.rb |
airborne-0.0.23 | lib/airborne/rack_test_requester.rb |
airborne-0.0.22 | lib/airborne/rack_test_requester.rb |