Lauren wrote:
> Thanks Bret for writing in.
>
> I guess what I meant was when the statement inside the assert statement is 
> true  -> assert(true)  wouldn't the +value+ then be true...meaning not 
> false...meaning +shouldn't+ fail or throw an exception ? 
>
> If the object above exists and I wrap an assert around it - doesn't the 
> statement say "assert that this statement is true" -> the statement is 
> true...so it passes without failure.  Right? 
>
> 1 test 1 assertion 0 failures 0 errors
>
> Instead, I am getting: 1 test 1 assertion 1 failure 0 errors. 
>
> I thought I saw this type of testing in the unittests. 
> For example, in "div_test.rb" line#132: assert($ie.span(:id, 
> 'buttons1').button(:index,1).exists? )
>   
I think you understand it correctly. I looked at your code again and 
cannot guess what the problem could be. Is it possible that you actually 
have more code than you are showing us?

Bret
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to