Reputation: 4804
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?
Upvotes: 0
Views: 38
Reputation: 16737
minitest/mock
does have a block expectation feature, have you tried it?
Upvotes: 1