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_with_message-i.ri
U:RDoc::AnyMethod[iI"assert_raise_with_message:EFI"5Test::Unit::Assertions#assert_raise_with_message;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DTests if the given block raises an exception with the expected ;TI" message.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"7assert_raise_with_message(RuntimeError, "foo") do ;TI", nil #Fails, no Exceptions are raised ;TI" end ;TI" ;TI"7assert_raise_with_message(RuntimeError, "foo") do ;TI"H raise ArgumentError, "foo" #Fails, different Exception is raised ;TI" end ;TI" ;TI"7assert_raise_with_message(RuntimeError, "foo") do ;TI"J raise "bar" #Fails, RuntimeError is raised but the message differs ;TI" end ;TI" ;TI"7assert_raise_with_message(RuntimeError, "foo") do ;TI"P raise "foo" #Raises RuntimeError with the message, so assertion succeeds ;TI"end;T:@format0: @fileI" lib/test/unit/assertions.rb;T:0@omit_headings_from_table_of_contents_below0I"Gassert_raise_with_message(exception, expected, msg = nil, &block) ;TI"