At 10:14 AM 11/4/2005, Eugene Kula wrote:
>Now that the assertions work, how do I get the results to display correctly
>(e.g. 0 assertions, 0 failures, 0 errors)?
The assert method in Test::Unit::Assertions is different from the assert
method in Test::Unit::TestCase in one way: it is not included in the total
count.
I am wondering if something like the following might not work for you. If
it does, let us know.
Bret
>def test_Columns
> columntable = [
> {'col'=>'Date/Time', 'issortable'=>true},
> {'col'=>'Description', 'issortable'=>true},
> {'col'=>'Lead', 'issortable'=>true},
> {'col'=>'Folder', 'issortable'=>true}
> ]
>
> TabularHelper.run_column_test(columntable, $ie, self)
>end
>
>MY Helper script:
>require 'watir'
>require 'test/unit'
>
>module TabularHelper
>def run_column_test(columntable, ie, testcase)
> testcase.assert($ie.something.exists?)
> testcase.assert_equal(somevalue, $ie.something.value)
>end
>end
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general