Is it possible to define own behavior of mock method using Minitest? I have found only solutions like "if called A return B", but I'd like to define own, alternative behavior in some block or lambda. Is it possible?
minitest/mock
does have a block expectation feature, have you tried it?