Registry / testing / sham-rack

sham-rack

JSON →
library1.4.1rbrubygemsunverified

ShamRack plumbs Net::HTTP directly into Rack, for quick and easy HTTP testing.

gem install sham_rack
INSTALL
IMPORT
SIG · SHAM-RACK
S
sham-rack
testingrubyv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ShamRack
require 'sham_rack'

Mount a Sinatra app at a fake host for HTTP testing

require 'sham_rack' ShamRack.at('example.com').sinatra do get '/' do 'Hello' end end Net::HTTP.get(URI('http://example.com/'))
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
sham-rack — gem install sham-rack · libregistry