From: Gaurang Shah Date: 2011-07-29T23:12:36+09:00 Subject: why startup and shutdown is not being called? startup and shudown method is being called if it is inside the one class only. But if i put that into module and include this module in another class as shown below startup and shutdown method is not being called. module BaseClass class << self def startup p "startup" end def shutdown p "shutdown" end end def setup puts "setup called" end def teardown puts "teardown called" end def cleanup p "cleanup" end end DemoTest1.rb require 'rubygems' gem 'test-unit' require 'test/unit' require "BaseClass" class DemoTest1 < Test::Unit::TestCase include BaseClass def test_third() puts "third" end end now if i execute the DemoTest1.rb I am getting below output Started setup called third "cleanup" teardown called startup and shutdown method is not being called. And i don't know why?? any idea guys ???? -- Posted via http://www.ruby-forum.com/.