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

2010-01-30 Thread Matt Patterson
On 28 Jan 2010, at 17:49, Rick DeNatale wrote: 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 displayed. The fix was to call super at the end of the method. I'd like

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

2010-01-28 Thread Rick DeNatale
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 displayed. 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

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

2010-01-28 Thread Ashley Moran
On Jan 28, 2010, at 5:49 pm, Rick DeNatale wrote: 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? Yes: don't use inheritance for implementations. The bug you describe is arguably a violation of the Liskov