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.
Audit
Dependencies
No dependency data recorded yet.