2

In Rspec one can do

expect(foo).to receive(:bark)

What's the equivalent in MiniTest?

(assert_send seems to not have a different behavior)

lulalala
  • 17,572
  • 15
  • 110
  • 169

1 Answers1

0

It looks like this question was already answered here: How to assert certain method is called with Ruby minitest framework?

In short - you should use mocks for checking is the method was called.

Stanislav Mekhonoshin
  • 4,276
  • 2
  • 20
  • 25