At 12:45 PM 10/26/2005, Pierre Garigue wrote:
>I'm not sure the way below is better, here is a fragment
>
> begin
> assert_nothing_raised(){
> (@@ie.link(:text, link_name).click)
> }
> @@log.info "PASS: got down to #{link_name}"
> rescue => e
> @@log.info "FAIL: did not get to #{link_name}"
> end
Rather, I suggest:
begin
@@ie.link(:text, link_name).click
@@log.info "PASS: got down to #{link_name}"
rescue
@@log.info "FAIL: did not get to #{link_name}"
end
The use of an assertion (namely, assert_nothing_raised) adds nothing.
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general