Create a test stub action.
stub <- stubAction ["foo", "bar", "baz"]stub"foo"stub"bar"stub"baz"stub*** Exception: HUnitFailure ...stubAction: no values left...
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Modulehspec-contrib-0.5.2Haskell2010
Create a test stub action.
stub <- stubAction ["foo", "bar", "baz"]stub"foo"stub"bar"stub"baz"stub*** Exception: HUnitFailure ...stubAction: no values left...
Create a test spy action.
Record any arguments that are passed to that action.
withSpy $ \ spy -> spy "foo" >> spy "bar" >> spy "baz"["foo","bar","baz"]