Path to this page:
./
devel/ruby-mocha,
Ruby library for mocking and stubbing
Branch: pkgsrc-2019Q2,
Version: 1.8.0,
Package name: ruby24-mocha-1.8.0,
Maintainer: pkgsrc-usersMocha is a Ruby library for mocking and stubbing using a syntax
like that of JMock, and SchMock. Most commonly Mocha is used in
conjunction with Test::Unit, but it can be used in other contexts.
One of its main advantages is that it allows you to mock and stub
methods on real (non-mock) classes and instances. You can for
example stub ActiveRecord instance methods like create, save,
destroy and even class methods like find to avoid hitting the
database in unit tests.
Mocha provides a unified, simple and readable syntax for both
traditional mocking and for mocking with real objects.
Required to run:[
lang/ruby24-base] [
devel/ruby-metaclass]
Required to build:[
pkgtools/cwrappers]
Master sites:
SHA1: ca935501ed99aa4239003f038d2479e78d93f190
RMD160: cc1a4e1414d31e1d533203715f96fe756b47bb91
Filesize: 218.5 KB
Version history: (Expand)
- (2019-07-04) Package added to pkgsrc.se, version ruby24-mocha-1.8.0 (created)