Merge from vendor branch TNF:
[pkgsrcv2.git] / devel / ruby-mocha / DESCR
1 Mocha is a Ruby library for mocking and stubbing using a syntax
2 like that of JMock, and SchMock. Most commonly Mocha is used in
3 conjunction with Test::Unit, but it can be used in other contexts.
4
5 One of its main advantages is that it allows you to mock and stub
6 methods on real (non-mock) classes and instances. You can for
7 example stub ActiveRecord instance methods like create, save,
8 destroy and even class methods like find to avoid hitting the
9 database in unit tests.
10
11 Mocha provides a unified, simple and readable syntax for both
12 traditional mocking and for mocking with real objects.