I recommend Zeljko's one-line assert statement, but *if* you really want to keep the format you have now, you can also use the 'flunk' command.

For example:

if $ie.select_list(:name, 'criteria.countryId').exists?
  assert(true) else flunk( "select_list(:name, 'criteria.countryId') does not exist" ) end



On 14/06/06, Adrian Rutter < [EMAIL PROTECTED]> wrote:

Hi,

Is it possible to tag a name to an assertation, so if I run this:

if $ie.select_list(:name, 'criteria.countryId').exists?
  assert(true) else assert(false) end
if $ie.select_list(:name, 'criteria.lob').exists?
   assert(true) else assert(false) end

And one passes and one fails, I can pinpoint and log which one has failed,
instead of just getting this

1 tests, 1 assertions, 1 failures, 0 errors

Cheers

Aidy

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to