[rspec-users] having should_receive expectation for things that happen in setup
Esad Hajdarevic
esad at esse.at
Tue Feb 20 16:20:37 EST 2007
Hi!
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?
Greetings,
Esad
More information about the rspec-users
mailing list