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
/
MiniTest
/
Mock
/
//opt/alt/ruby21/share/ri/2.1.0/system/MiniTest/Mock/expect-i.ri
U:RDoc::AnyMethod[iI"expect:EFI"MiniTest::Mock#expect;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FExpect that method +name+ is called, optionally with +args+ or a ;TI"!+blk+, and returns +retval+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"(@mock.expect(:meaning_of_life, 42) ;TI"#@mock.meaning_of_life # => 42 ;TI" ;TI">@mock.expect(:do_something_with, true, [some_obj, true]) ;TI"7@mock.do_something_with(some_obj, true) # => true ;TI" ;TI"8@mock.expect(:do_something_else, true) do |a1, a2| ;TI"% a1 == "buggs" && a2 == :bunny ;TI" end ;T:@format0o; ; [I"J+args+ is compared to the expected args using case equality (ie, the ;TI">'===' operator), allowing for less specific expectations.;T@o;; [I"4@mock.expect(:uses_any_string, true, [String]) ;TI",@mock.uses_any_string("foo") # => true ;TI"@mock.verify # => true ;TI" ;TI"2@mock.expect(:uses_one_string, true, ["foo"] ;TI",@mock.uses_one_string("bar") # => true ;TI"3@mock.verify # => raises MockExpectationError;T; 0: @fileI"lib/minitest/mock.rb;T:0@omit_headings_from_table_of_contents_below000[ I""(name, retval, args=[], &blk);T@(FI" Mock;TcRDoc::NormalClass00