You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen a lot of custom matchers, and ours included, reimplement the same interface of #once, #twice, #at_least etc. Sometimes partially, sometimes completely.
A Countable module can be used in matchers from Expectations (include) and Mocks (receive), and third-party extensions.
The problem here is that Mocks do not depend on Expectations, and Support might not be the best place for it (can't find the discussion about extracting, can only recall the word "bag" was used).
The text was updated successfully, but these errors were encountered:
Mocks cannot depend on Expectations for such core functionality, if you do want to extract it, then it would need to go to support. The current implementation is not suitable for extraction as we would need a single concrete way for a 3rd party to define how countable works.
I've seen a lot of custom matchers, and ours included, reimplement the same interface of
#once
,#twice
,#at_least
etc. Sometimes partially, sometimes completely.A
Countable
module can be used in matchers from Expectations (include
) and Mocks (receive
), and third-party extensions.Expected behavior
The problem here is that Mocks do not depend on Expectations, and Support might not be the best place for it (can't find the discussion about extracting, can only recall the word "bag" was used).
The text was updated successfully, but these errors were encountered: