devel/ruby-mocha - The NetBSD Packages Collection

Ruby library for mocking and stubbing

Mocha 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.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

devel/ruby-ruby2_keywords lang/ruby32-base

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64ruby31-mocha-2.4.5.tgz
NetBSD 10.0aarch64ruby32-mocha-2.4.5.tgz
NetBSD 10.0aarch64ruby33-mocha-2.4.5.tgz
NetBSD 10.0aarch64ruby31-mocha-2.3.0.tgz
NetBSD 10.0aarch64ruby32-mocha-2.3.0.tgz
NetBSD 10.0aarch64ruby33-mocha-2.3.0.tgz
NetBSD 10.0aarch64ebruby31-mocha-2.3.0.tgz
NetBSD 10.0aarch64ebruby31-mocha-2.4.5.tgz
NetBSD 10.0earmv6hfruby31-mocha-2.4.5.tgz
NetBSD 10.0earmv6hfruby32-mocha-2.4.5.tgz
NetBSD 10.0earmv6hfruby33-mocha-2.4.5.tgz
NetBSD 10.0earmv6hfruby31-mocha-2.1.0.tgz
NetBSD 10.0earmv6hfruby32-mocha-2.1.0.tgz
NetBSD 10.0earmv6hfruby33-mocha-2.1.0.tgz
NetBSD 10.0earmv6hfruby31-mocha-2.3.0.tgz
NetBSD 10.0earmv6hfruby32-mocha-2.3.0.tgz
NetBSD 10.0earmv6hfruby33-mocha-2.3.0.tgz
NetBSD 10.0earmv7hfruby31-mocha-2.4.5.tgz
NetBSD 10.0earmv7hfruby32-mocha-2.4.5.tgz
NetBSD 10.0earmv7hfruby33-mocha-2.4.5.tgz
NetBSD 10.0earmv7hfruby31-mocha-2.1.0.tgz
NetBSD 10.0earmv7hfruby32-mocha-2.1.0.tgz
NetBSD 10.0earmv7hfruby33-mocha-2.1.0.tgz
NetBSD 10.0earmv7hfruby31-mocha-2.3.0.tgz
NetBSD 10.0earmv7hfruby32-mocha-2.3.0.tgz
NetBSD 10.0earmv7hfruby33-mocha-2.3.0.tgz
NetBSD 10.0i386ruby31-mocha-2.4.5.tgz
NetBSD 10.0i386ruby32-mocha-2.4.5.tgz
NetBSD 10.0i386ruby33-mocha-2.4.5.tgz
NetBSD 10.0i386ruby31-mocha-2.3.0.tgz
NetBSD 10.0i386ruby32-mocha-2.3.0.tgz
NetBSD 10.0i386ruby33-mocha-2.3.0.tgz
NetBSD 10.0powerpcruby31-mocha-2.1.0.tgz
NetBSD 10.0powerpcruby32-mocha-2.1.0.tgz
NetBSD 10.0powerpcruby31-mocha-2.1.0.tgz
NetBSD 10.0powerpcruby32-mocha-2.1.0.tgz
NetBSD 10.0powerpcruby31-mocha-2.1.0.tgz
NetBSD 10.0powerpcruby32-mocha-2.1.0.tgz
NetBSD 10.0powerpcruby33-mocha-2.1.0.tgz
NetBSD 10.0sparc64ruby31-mocha-2.3.0.tgz
NetBSD 10.0sparc64ruby32-mocha-2.3.0.tgz
NetBSD 10.0sparc64ruby33-mocha-2.3.0.tgz
NetBSD 10.0sparc64ruby31-mocha-2.4.5.tgz
NetBSD 10.0sparc64ruby32-mocha-2.4.5.tgz
NetBSD 10.0sparc64ruby33-mocha-2.4.5.tgz
NetBSD 10.0x86_64ruby31-mocha-2.4.5.tgz
NetBSD 10.0x86_64ruby32-mocha-2.4.5.tgz
NetBSD 10.0x86_64ruby33-mocha-2.4.5.tgz
NetBSD 10.0x86_64ruby31-mocha-2.3.0.tgz
NetBSD 10.0x86_64ruby32-mocha-2.3.0.tgz
NetBSD 10.0x86_64ruby33-mocha-2.3.0.tgz
NetBSD 9.0aarch64ruby31-mocha-2.4.5.tgz
NetBSD 9.0aarch64ruby31-mocha-2.3.0.tgz
NetBSD 9.0earmv6hfruby31-mocha-2.4.5.tgz
NetBSD 9.0earmv6hfruby32-mocha-2.4.5.tgz
NetBSD 9.0earmv6hfruby33-mocha-2.4.5.tgz
NetBSD 9.0earmv6hfruby31-mocha-2.1.0.tgz
NetBSD 9.0earmv6hfruby32-mocha-2.1.0.tgz
NetBSD 9.0earmv6hfruby33-mocha-2.1.0.tgz
NetBSD 9.0earmv6hfruby31-mocha-2.3.0.tgz
NetBSD 9.0earmv6hfruby32-mocha-2.3.0.tgz
NetBSD 9.0earmv6hfruby33-mocha-2.3.0.tgz
NetBSD 9.0earmv7hfruby31-mocha-2.4.5.tgz
NetBSD 9.0earmv7hfruby32-mocha-2.4.5.tgz
NetBSD 9.0earmv7hfruby33-mocha-2.4.5.tgz
NetBSD 9.0earmv7hfruby31-mocha-2.1.0.tgz
NetBSD 9.0earmv7hfruby32-mocha-2.1.0.tgz
NetBSD 9.0earmv7hfruby33-mocha-2.1.0.tgz
NetBSD 9.0earmv7hfruby31-mocha-2.3.0.tgz
NetBSD 9.0earmv7hfruby32-mocha-2.3.0.tgz
NetBSD 9.0earmv7hfruby33-mocha-2.3.0.tgz
NetBSD 9.0i386ruby31-mocha-2.4.5.tgz
NetBSD 9.0i386ruby32-mocha-2.4.5.tgz
NetBSD 9.0i386ruby33-mocha-2.4.5.tgz
NetBSD 9.0i386ruby31-mocha-2.3.0.tgz
NetBSD 9.0i386ruby32-mocha-2.3.0.tgz
NetBSD 9.0i386ruby33-mocha-2.3.0.tgz
NetBSD 9.0powerpcruby31-mocha-2.1.0.tgz
NetBSD 9.0powerpcruby32-mocha-2.1.0.tgz
NetBSD 9.0powerpcruby31-mocha-2.1.0.tgz
NetBSD 9.0powerpcruby32-mocha-2.1.0.tgz
NetBSD 9.0powerpcruby31-mocha-2.1.0.tgz
NetBSD 9.0powerpcruby32-mocha-2.1.0.tgz
NetBSD 9.0powerpcruby33-mocha-2.1.0.tgz
NetBSD 9.0sparc64ruby31-mocha-2.4.5.tgz
NetBSD 9.0sparc64ruby32-mocha-2.4.5.tgz
NetBSD 9.0sparc64ruby33-mocha-2.4.5.tgz
NetBSD 9.0x86_64ruby31-mocha-2.4.5.tgz
NetBSD 9.0x86_64ruby32-mocha-2.4.5.tgz
NetBSD 9.0x86_64ruby33-mocha-2.4.5.tgz
NetBSD 9.0x86_64ruby31-mocha-2.3.0.tgz
NetBSD 9.0x86_64ruby32-mocha-2.3.0.tgz
NetBSD 9.0x86_64ruby33-mocha-2.3.0.tgz
NetBSD 9.3x86_64ruby31-mocha-2.4.5.tgz
NetBSD 9.3x86_64ruby32-mocha-2.4.5.tgz
NetBSD 9.3x86_64ruby33-mocha-2.4.5.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.