[rspec-users] Can I set an expectation that a method invokes super?

Rick DeNatale rick.denatale at gmail.com
Thu Jan 28 12:49:42 EST 2010

Not sure if I can easily do this

Just ran into a bug in a rails app where ApplicationController
overrides rescue_action_in_public leading to the error page not being

The fix was to call super at the end of the method.

I'd like to write a spec to ensure that this doesn't regress, but my
imagination is failing me as to how to do it.

Any ideas?

Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

More information about the rspec-users mailing list