Elektrine lite

← Feed

@eightbitraptor@ruby.social

Post #1554827

2026-02-21 13:14 UTC

@floehopper @timriley Mocha has a much nicer API in my experience. Minitest mock had always felt like a mocking framework designed to discourage mocking. Which, to be fair, might be true.

Replies (2)

  • @byroot@ruby.social 2026-02-21 15:21

    @eightbitraptor @floehopper @timriley I can confirm, minitest-mock is really the bare minimum, not something you want to use extensively. Mocha is definitely the standard mock framework for minitest test suites. But I also agree is potentially for the best that mocking has a bit of extra friction, as there is nothing worse than a test suite that is too heavily mocked/stubbed.

    Open ##1554828

  • @zenspider@ruby.social 2026-02-23 05:52

    @timriley @floehopper @eightbitraptor it was. Not mocking is better than mocking for 80-90% of all tests.

    Open ##1554829