Registry / testing / micro-mock

micro-mock

JSON →
library1.1.0rbrubygemsunverified

Perhaps the lightest mocking strategy available for Ruby.

gem install micro_mock
INSTALL
IMPORT
SIG · MICRO-MOCK
M
micro-mock
testingrubyv1.1.0
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.

MicroMock
require 'micro_mock'

Create a simple mock and set expectations.

require 'micro_mock' mock = MicroMock.new mock.expect(:foo, 'bar') puts mock.foo # => 'bar'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
micro-mock — gem install micro-mock · libregistry