[rspec-users] debugging calls with message expectations

Toni Tuominen tjtuom at utu.fi
Mon Nov 15 00:55:11 EST 2010

I'd like to know how to debug callers with message expectations. I
have a message expectation that should be called only once but for
some reason is called 13 times and I'd like to know where it's called
from. I've made the expectation return the value with a block and made
it print the call stack but it only prints one stack, not 13 stacks as
I would have thought. Why is that?

The relevant code is here: https://gist.github.com/026a6c696e2199a46455.
I am using rails 3.0.1 and rspec 2.0.1.

- Toni

More information about the rspec-users mailing list