[rspec-users] having should_receive expectation for things that happen in setup
esad at esse.at
Tue Feb 20 16:20:37 EST 2007
The following example doesn't work for me: http://pastie.caboo.se/41732
However, if the call to msg() happens in the specify block after the
expecation and not in the setup, it will pass.
Why is this? I thought the setup method was there to actually
'construct' the context and the specifications are some kind of
"postconditions" that only need to be validated after that - am I
thinking wrong here?
More information about the rspec-users