Registry / testing / jferris-mocha

jferris-mocha

JSON →
library0.9.5.0.1240002286rbrubygemsunverified

Mocking and stubbing library with JMock/SchMock syntax, allowing mocking and stubbing of methods on real (non-mock) classes.

gem install jferris-mocha
INSTALL
IMPORT
SIG · JFERRIS-MOCHA
J
jferris-mocha
testingrubyv0.9.5.0.1240002286
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.

Mocha
require 'mocha'

Create a mock object and set expectations

require 'mocha' object = mock() object.expects(:method_name).returns('result') puts object.method_name
Debug
Known issues
breakingThis fork is outdated; consider using the official mocha gem.
fix
Replace with the mocha gem from rubygems.org.
affects: >= 0.9.5
Upgrade
Version history
0.9.5.0.1240002286latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jferris-mocha — gem install jferris-mocha · libregistry