I ended up stumbling across something similar by accident. I removed the
module name (TabularHelper) from the method in the test case and it works.
Thanks for the help!
require 'tabularHelper.rb'
include TabularHelper
class TC_EventTabular < Test::Unit::TestCase
def test_Columns
columntable = [
{'col'=>'Date/Time', 'issortable'=>true},
{'col'=>'Description', 'issortable'=>true},
{'col'=>'Lead', 'issortable'=>true},
{'col'=>'Folder', 'issortable'=>true}
]
run_column_test(columntable, $ie)
end
end
MY Helper script:
require 'watir'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
module TabularHelper
def run_column_test(columntable, ie)
assert($ie.something.exists?)
assert_equal(somevalue, $ie.something.value)
end
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general