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/cwrappers

Runtime dependencies

devel/ruby-metaclass lang/ruby26-base

Binary packages

OSArchitectureVersion
NetBSD 8.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby24-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 8.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 8.0i386ruby25-mocha-1.11.2.tgz
NetBSD 8.0i386ruby26-mocha-1.11.2.tgz
NetBSD 8.0i386ruby27-mocha-1.11.2.tgz
NetBSD 8.0i386ruby25-mocha-1.11.2.tgz
NetBSD 8.0i386ruby26-mocha-1.11.2.tgz
NetBSD 8.0i386ruby27-mocha-1.11.2.tgz
NetBSD 8.0i386ruby25-mocha-1.11.2.tgz
NetBSD 8.0i386ruby26-mocha-1.11.2.tgz
NetBSD 8.0i386ruby27-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby24-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby25-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby26-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby27-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby24-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby25-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby26-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby27-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby24-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby25-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby26-mocha-1.11.2.tgz
NetBSD 8.0powerpcruby27-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 8.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby25-mocha-1.12.0.tgz
NetBSD 9.0aarch64ruby26-mocha-1.12.0.tgz
NetBSD 9.0aarch64ruby27-mocha-1.12.0.tgz
NetBSD 9.0aarch64ruby30-mocha-1.12.0.tgz
NetBSD 9.0aarch64ruby25-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby26-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby27-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby25-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby26-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby27-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby25-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby26-mocha-1.11.2.tgz
NetBSD 9.0aarch64ruby27-mocha-1.11.2.tgz
NetBSD 9.0alpharuby25-mocha-1.11.2.tgz
NetBSD 9.0alpharuby26-mocha-1.11.2.tgz
NetBSD 9.0alpharuby27-mocha-1.11.2.tgz
NetBSD 9.0alpharuby25-mocha-1.11.2.tgz
NetBSD 9.0alpharuby26-mocha-1.11.2.tgz
NetBSD 9.0alpharuby27-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby25-mocha-1.12.0.tgz
NetBSD 9.0earmv6hfruby26-mocha-1.12.0.tgz
NetBSD 9.0earmv6hfruby27-mocha-1.12.0.tgz
NetBSD 9.0earmv6hfruby30-mocha-1.12.0.tgz
NetBSD 9.0earmv6hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv6hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby25-mocha-1.12.0.tgz
NetBSD 9.0earmv7hfruby26-mocha-1.12.0.tgz
NetBSD 9.0earmv7hfruby27-mocha-1.12.0.tgz
NetBSD 9.0earmv7hfruby30-mocha-1.12.0.tgz
NetBSD 9.0earmv7hfruby24-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby25-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby26-mocha-1.11.2.tgz
NetBSD 9.0earmv7hfruby27-mocha-1.11.2.tgz
NetBSD 9.0i386ruby25-mocha-1.11.2.tgz
NetBSD 9.0i386ruby26-mocha-1.11.2.tgz
NetBSD 9.0i386ruby27-mocha-1.11.2.tgz
NetBSD 9.0i386ruby25-mocha-1.11.2.tgz
NetBSD 9.0i386ruby26-mocha-1.11.2.tgz
NetBSD 9.0i386ruby27-mocha-1.11.2.tgz
NetBSD 9.0i386ruby25-mocha-1.11.2.tgz
NetBSD 9.0i386ruby26-mocha-1.11.2.tgz
NetBSD 9.0i386ruby27-mocha-1.11.2.tgz
NetBSD 9.0mips64ebruby25-mocha-1.11.2.tgz
NetBSD 9.0mips64ebruby26-mocha-1.11.2.tgz
NetBSD 9.0mips64ebruby27-mocha-1.11.2.tgz
NetBSD 9.0mips64ebruby25-mocha-1.11.2.tgz
NetBSD 9.0mips64ebruby26-mocha-1.11.2.tgz
NetBSD 9.0mips64ebruby27-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby24-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby25-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby26-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby27-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby24-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby25-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby26-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby27-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby24-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby25-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby26-mocha-1.11.2.tgz
NetBSD 9.0powerpcruby27-mocha-1.11.2.tgz
NetBSD 9.0sparc64ruby25-mocha-1.11.2.tgz
NetBSD 9.0sparc64ruby26-mocha-1.11.2.tgz
NetBSD 9.0sparc64ruby27-mocha-1.11.2.tgz
NetBSD 9.0sparc64ruby25-mocha-1.11.2.tgz
NetBSD 9.0sparc64ruby26-mocha-1.11.2.tgz
NetBSD 9.0sparc64ruby27-mocha-1.11.2.tgz
NetBSD 9.0sparcruby25-mocha-1.11.2.tgz
NetBSD 9.0sparcruby27-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby25-mocha-1.12.0.tgz
NetBSD 9.0x86_64ruby26-mocha-1.12.0.tgz
NetBSD 9.0x86_64ruby27-mocha-1.12.0.tgz
NetBSD 9.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby25-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby26-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby27-mocha-1.11.2.tgz
NetBSD 9.0x86_64ruby25-mocha-1.12.0.tgz
NetBSD 9.0x86_64ruby26-mocha-1.12.0.tgz
NetBSD 9.0x86_64ruby27-mocha-1.12.0.tgz
NetBSD 9.0x86_64ruby30-mocha-1.12.0.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.