C
Chuck Remes
I'm writing some modules that I use to replace/extend the
functionality in a base class. I want to test these modules without
adding them to the original class.
My problem is that some of the module methods call #super to preserve
the base class' functionality. However, in the spec there is no base
class and therefore no #super so I get a NoMethodError.
What is the proper way to check for the existence of a #super method
before invoking it?
cr
functionality in a base class. I want to test these modules without
adding them to the original class.
My problem is that some of the module methods call #super to preserve
the base class' functionality. However, in the spec there is no base
class and therefore no #super so I get a NoMethodError.
What is the proper way to check for the existence of a #super method
before invoking it?
cr