require "support/class_definer"

module ClassDefinerHelper
  def define_class(*args)
    class_definer.define_class(*args)
  end
  
  def after_teardown
    class_definer.undefine_all_classes
  end
  
  private
  
  def class_definer
    @class_definer ||= ClassDefiner.new
  end
end
require "support/class_definer"

module ClassDefinerHelper
  def define_class(*args)
    class_definer.define_class(*args)
  end
  
  def teardown
    class_definer.undefine_all_classes
  end
  
  private
  
  def class_definer
    @class_definer ||= ClassDefiner.new
  end
end
Use minitest teardown instead of after_teardown
Use minitest teardown instead of after_teardown

* Got a bit confused by minitest documentation
