Use spies instead of mocks for the spec.

@KCErb: Have a look if you like, basically the stubbed method on
app was missing (first line in this change).