-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When an assert_called using pinned variables fails, you get an error like:
** (Patch.MissingCall)
Expected but did not receive the following call:
SomeModule.some_call(^var1, ^var2)
Calls which were received (matching calls are marked with *):
1. SomeModule.some_call(:a, 1)
2. SomeModule.some_call(:b, 2)
3. SomeModule.some_call(:c, 3)
It would be helpful to know what var1 and var2 were bound to. For example:
** (Patch.MissingCall)
Expected but did not receive the following call:
SomeModule.some_call(^var1, ^var2)
With pinned values:
^var1 = :d
^var2 = 4
Calls which were received (matching calls are marked with *):
1. SomeModule.some_call(:a, 1)
2. SomeModule.some_call(:b, 2)
3. SomeModule.some_call(:c, 3)
Metadata
Metadata
Assignees
Labels
No labels