All -

I'd like to create a module that adds some specific functionality to my
setup and teardown methods within a few of my test cases. I'd like to be
able to do something to the effect of:

module Stuff
  method_alias :old_setup, :setup
  def setup
    old_setup
    # new stuff goes here
  end
end

class MyTest
  include Stuff
  def setup
    # original setup stuff here
  end
end

The above code is just psuedo code and doesn't work for a number of
reasons. However, I was wondering if there is a best practice for this
type of behavior.

Thanks,
Drew
-- 
Posted via http://www.ruby-forum.com/.