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.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
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"]