Skip to content

Commit

Permalink
[skip ci] Update documentation for v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
floehopper committed Oct 23, 2024
1 parent 45b99aa commit d673327
Show file tree
Hide file tree
Showing 56 changed files with 664 additions and 504 deletions.
12 changes: 6 additions & 6 deletions docs/Mocha.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Module: Mocha

&mdash; Mocha 2.4.5
&mdash; Mocha 2.5.0

</title>

Expand Down Expand Up @@ -167,12 +167,12 @@ <h3 class="signature first" id="configure-class_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Setting multiple configuration options</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='const'><span class='object_link'><a href="" title="Mocha (module)">Mocha</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_stubbing_method_unnecessarily'>stubbing_method_unnecessarily</span> <span class='op'>=</span> <span class='symbol'>:prevent</span>
Expand Down Expand Up @@ -236,9 +236,9 @@ <h3 class="signature first" id="configure-class_method">
</div>

<div id="footer">
Generated on Wed Jul 24 12:38:12 2024 by
Generated on Wed Oct 23 10:44:33 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.0).
0.9.37 (ruby-3.2.0).
</div>

</div>
Expand Down
50 changes: 25 additions & 25 deletions docs/Mocha/API.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Module: Mocha::API

&mdash; Mocha 2.4.5
&mdash; Mocha 2.5.0

</title>

Expand Down Expand Up @@ -106,12 +106,12 @@ <h2>Overview</h2><div class="docstring">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Verifying mock using <span class='object_link'><a href="Mock.html#responds_like_instance_of-instance_method" title="Mocha::Mock#responds_like_instance_of (method)">Mock#responds_like_instance_of</a></span></p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='kw'>class</span> <span class='const'>Sheep</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
Expand Down Expand Up @@ -323,12 +323,12 @@ <h3 class="signature first" id="mock-instance_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Using expected_methods_vs_return_values Hash to setup expectations.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='kw'>def</span> <span class='id identifier rubyid_test_motor_starts_and_stops'>test_motor_starts_and_stops</span>
<span class='id identifier rubyid_motor'>motor</span> <span class='op'>=</span> <span class='id identifier rubyid_mock'>mock</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>motor</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>start:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>stop:</span> <span class='kw'>true</span><span class='rparen'>)</span>
Expand Down Expand Up @@ -539,12 +539,12 @@ <h3 class="signature " id="sequence-instance_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Ensure methods on egg are invoked in correct order.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='id identifier rubyid_breakfast'>breakfast</span> <span class='op'>=</span> <span class='id identifier rubyid_sequence'>sequence</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>breakfast</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>

Expand All @@ -554,9 +554,9 @@ <h3 class="signature " id="sequence-instance_method">
<span class='id identifier rubyid_egg'>egg</span><span class='period'>.</span><span class='id identifier rubyid_expects'>expects</span><span class='lparen'>(</span><span class='symbol'>:eat</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_in_sequence'>in_sequence</span><span class='lparen'>(</span><span class='id identifier rubyid_breakfast'>breakfast</span><span class='rparen'>)</span></code></pre>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Ensure methods across multiple objects are invoked in correct order.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='id identifier rubyid_sequence'>sequence</span> <span class='op'>=</span> <span class='id identifier rubyid_sequence'>sequence</span><span class='lparen'>(</span><span class='symbol'>:task_order</span><span class='rparen'>)</span>

Expand All @@ -570,9 +570,9 @@ <h3 class="signature " id="sequence-instance_method">
<span class='id identifier rubyid_task_two'>task_two</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span></code></pre>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Ensure methods on egg are invoked in the correct order using a block.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='id identifier rubyid_egg'>egg</span> <span class='op'>=</span> <span class='id identifier rubyid_mock'>mock</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>egg</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_sequence'>sequence</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>breakfast</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
Expand Down Expand Up @@ -710,12 +710,12 @@ <h3 class="signature " id="states-instance_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Constrain expected invocations to occur in particular states.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='id identifier rubyid_power'>power</span> <span class='op'>=</span> <span class='id identifier rubyid_states'>states</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>power</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_starts_as'>starts_as</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>off</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>

Expand Down Expand Up @@ -826,12 +826,12 @@ <h3 class="signature " id="stub-instance_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Using stubbed_methods_vs_return_values Hash to setup stubbed methods.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='kw'>def</span> <span class='id identifier rubyid_test_motor_starts_and_stops'>test_motor_starts_and_stops</span>
<span class='id identifier rubyid_motor'>motor</span> <span class='op'>=</span> <span class='id identifier rubyid_stub'>stub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>motor</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>start:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>stop:</span> <span class='kw'>true</span><span class='rparen'>)</span>
Expand Down Expand Up @@ -1046,12 +1046,12 @@ <h3 class="signature " id="stub_everything-instance_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Ignore invocations of irrelevant methods.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='kw'>def</span> <span class='id identifier rubyid_test_motor_stops'>test_motor_stops</span>
<span class='id identifier rubyid_motor'>motor</span> <span class='op'>=</span> <span class='id identifier rubyid_stub_everything'>stub_everything</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>motor</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>stop:</span> <span class='kw'>true</span><span class='rparen'>)</span>
Expand Down Expand Up @@ -1247,9 +1247,9 @@ <h3 class="signature " id="stub_everything-instance_method">
</div>

<div id="footer">
Generated on Wed Jul 24 12:38:12 2024 by
Generated on Wed Oct 23 10:44:34 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.0).
0.9.37 (ruby-3.2.0).
</div>

</div>
Expand Down
12 changes: 6 additions & 6 deletions docs/Mocha/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Module: Mocha::ClassMethods

&mdash; Mocha 2.4.5
&mdash; Mocha 2.5.0

</title>

Expand Down Expand Up @@ -162,12 +162,12 @@ <h3 class="signature first" id="any_instance-instance_method">
<div class="tags">

<div class="examples">
<p class="tag_title">Examples:</p>
<h4 class="tag_title">Examples:</h4>


<p class="example_title"><div class='inline'>
<h5 class="example_title"><div class='inline'>
<p>Return false to invocation of <tt>Product#save</tt> for any instance of <code>Product</code>.</p>
</div></p>
</div></h5>

<pre class="example code"><code><span class='const'>Product</span><span class='period'>.</span><span class='id identifier rubyid_any_instance'>any_instance</span><span class='period'>.</span><span class='id identifier rubyid_stubs'>stubs</span><span class='lparen'>(</span><span class='symbol'>:save</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_returns'>returns</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span>
<span class='id identifier rubyid_product_1'>product_1</span> <span class='op'>=</span> <span class='const'>Product</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
Expand Down Expand Up @@ -246,9 +246,9 @@ <h3 class="signature first" id="any_instance-instance_method">
</div>

<div id="footer">
Generated on Wed Jul 24 12:38:12 2024 by
Generated on Wed Oct 23 10:44:34 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.0).
0.9.37 (ruby-3.2.0).
</div>

</div>
Expand Down
Loading

0 comments on commit d673327

Please sign in to comment.