Karol Selak
Karol Selak

Reputation: 4804

Can I define own behavior of a mock method with Minitest?

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

Answers (1)

Kache
Kache

Reputation: 16737

minitest/mock does have a block expectation feature, have you tried it?

Upvotes: 1

Related Questions