speclj.stub

*stubbed-invocations*

dynamic

-record-invocation

(-record-invocation name args)

clear!

(clear!)
Removes all previous stub invocations to continue with a blank slate.

first-invocation-of

(first-invocation-of name)
Returns the list of arguments passed into the first invocation of the specified stub, nil if it was never invoked.

invocations-of

(invocations-of name)
Returns a list of argument lists representing each invocation of the specified stub.

last-invocation-of

(last-invocation-of name)
Returns the list of arguments passed into the last invocation of the specified stub, nil if it was never invoked.

params-match?

(params-match? expected actual)

stub

(stub name)(stub name options)