Hi All,

I am trying to execute the below mentioned code:
require 'test/unit'


class MyTest < Test::Unit::TestCase

 class << self
  def startup
          puts "startup"

         end

        def shutdown

          puts "shutdown"

        end

end
def setup

 puts "Test setup"

end


def teardown

 puts "test teardown"

end



def test_test3

  puts "test3"

end


def test_test1

  puts "test1"

end


def test_test2

  puts "test2"

end

end
Actual output:
Loaded suite unit_test_suite
Started
Test setup
test teardown
.Test setup
test1
test teardown
.Test setup
test2
test teardown
.Test setup
test3
test teardown
.
Finished in 0.000313 seconds.
Expected Result:
Loaded suite unit_test_suite
Started
Startup
Test setup
test teardown
.Test setup
test1
test teardown
.Test setup
test2
test teardown
.Test setup
test3
test teardown
Shutdown
Ruby version: ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

why startup and shutdown not getting excuted

-- 
Posted via http://www.ruby-forum.com/.