Hi,
I am relatively new to Ruby and I couldn’t make MiniTest to execute the
test.
The code I am trying to is as follows
Require the win32ole library:loade
require ‘rubygems’
require ‘win32ole’
require ‘minitest/unit’
MiniTest::Unit.autorun
class RubyTest < MiniTest::Unit::TestCase
def setup
@wsh = WIN32OLE.new(‘Wscript.Shell’)
end
def testIsActive
if @wsh.AppActivate(‘Notepad’)
assert(true, ‘This unit test got passed.’)
puts ‘This unit test got passed.’
else
assert(false, ‘This unit test did NOT get passed.’)
end
end
def teardown
end
end
The file containing the above code loads fine, but does not execute the
test.
I am loading the file from iteractive Ruby window.
However , if I press ^C in the interactive Ruby window (After loading
the file) , the test case starts excecuting
Can some one point to me why the same is not working?
Regards,
George