seattlerb/minitest — pull request #103 by cfcosta (2012-03-12 03:13:41+00:00)
Title: Adds Strict Mocks to MiniTest

Since @zenspider asked if it wouldn't be a good idea to fold minitest-firemock[1] into minitest[2], I created this pull request.

It adds MiniTest::StrictMock, a subset of MiniTest::Mock that checks for presence and arity of the mocked method if the constant is defined. It adds a new layer of resilience for the mocks, working as expected on isolated tests, and checking for suitability on integrated tests.

Thoughts?

[1] https://github.com/cfcosta/minitest-firemock
[2] https://github.com/cfcosta/minitest-firemock/issues/1