Skip to content

Issue 916 - Fixes bug for ordered spies and alternating calls

Created by: johnceh

Why?

Fix for Issue #916 - Spies were not tracking order properly and raised error incorrectly for alternating groups. It was including all messages/expectations/invocations when evaluating order on each expectation.

What Changed?

Added limiting range for messages/expectations/invocations for order checks so just current expectations from group are evaluated. Tests by @myronmarston in issue added in.

Merge request reports