Registry / testing / mimic
library0.4.4rbrubygemsunverified

A Ruby gem for faking external web services for testing purposes.

gem install mimic
INSTALL
IMPORT
SIG · MIMIC
M
mimic
testingrubyv0.4.4
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.

Mimic
require 'mimic'

Stub a GET endpoint to return a JSON response.

require 'mimic' Mimic.mimic(:get, '/users') do [200, {}, ['{"users":[]}']] end # Now any HTTP GET to /users will return the stubbed response.
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mimic — gem install mimic · libregistry