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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.