Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Test
/
Unit
/
Assertions
/
//opt/alt/ruby21/share/ri/2.1.0/system/Test/Unit/Assertions/assert_raise-i.ri
U:RDoc::AnyMethod[iI"assert_raise:EFI"(Test::Unit::Assertions#assert_raise;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HTests if the given block raises an exception. Acceptable exception ;TI"Itypes may be given as optional arguments. If the last argument is a ;TI"2String, it will be used as the error message.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"6assert_raise do #Fails, no Exceptions are raised ;TI" end ;TI" ;TI"assert_raise NameError do ;TI"8 puts x #Raises NameError, so assertion succeeds ;TI"end;T:@format0: @fileI" lib/test/unit/assertions.rb;T:0@omit_headings_from_table_of_contents_below0I"#assert_raise( *args, &block ) ;T0[ I"(*args, &b);T@FI"Assertions;FcRDoc::NormalModule00