RSpec matcher that checks collection to include item that satisfies lambda

前端 未结 2 1398
挽巷
挽巷 2021-01-21 18:43

I am a bit at a loss as to how to write a RSpec 3.2.x spec that checks wether a list contains at least one item that satisfies a condition.

Here is an example:



        
2条回答
提交回复
热议问题