marick/Midje — Issue #94: Stack overflow when providing result of deref
Author: dnaumov
Created: 2012-01-22 19:20:25+00:00
State: open

The following code throws StackOverflowError:

```
(def foo (atom []))

(fact
(inc @foo) => 1
(provided
(deref foo) => 0))
```

Full stack trace here: http://pastebin.com/hi7cfsD7

If it's not possible to mock out the deref calls, it'd be better to document it and throw appropriate exception.