Registry / testing / webstub

webstub

JSON →
library1.1.6rbrubygemsunverified

Easily stub out HTTP responses in RubyMotion specs.

gem install webstub
INSTALL
IMPORT
SIG · WEBSTUB
W
webstub
testingrubyv1.1.6
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.

WebStub
✓ require 'webstub'

Stub HTTP requests in RubyMotion specs

require 'webstub' # Stub an HTTP request WebStub.stub_request(:get, 'https://api.example.com/data') do |request| request.respond_with(body: '{"key":"value"}', status: 200) end # Make the request BW::HTTP.get('https://api.example.com/data') do |response| puts response.body end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
webstub — gem install webstub · libregistry