doc/Caricature/ExpectationSyntax.html in caricature-0.6.0 vs doc/Caricature/ExpectationSyntax.html in caricature-0.6.1

- old
+ new

@@ -50,22 +50,24 @@ <div id="method-list-section" class="section"> <h3 class="section-header">Methods</h3> <ul class="link-list"> - <li><a href="#M000030">#any_args?</a></li> + <li><a href="#M000032">#actual_raise</a></li> - <li><a href="#M000027">#raise</a></li> + <li><a href="#M000035">#any_args?</a></li> - <li><a href="#M000026">#return</a></li> + <li><a href="#M000031">#raise</a></li> - <li><a href="#M000029">#super_after</a></li> + <li><a href="#M000030">#return</a></li> - <li><a href="#M000028">#super_before</a></li> + <li><a href="#M000034">#super_after</a></li> - <li><a href="#M000025">#with</a></li> + <li><a href="#M000033">#super_before</a></li> + <li><a href="#M000029">#with</a></li> + </ul> </div> <!-- Included Modules --> @@ -197,12 +199,37 @@ <div id="public-instance-method-details" class="method-section section"> <h3 class="section-header">Public Instance Methods</h3> + <div id="actual-raise-method" class="method-detail method-alias"> + <a name="M000032"></a> + + <div class="method-heading"> + + <span class="method-name">actual_raise</span><span + class="method-args">(*args)</span> + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-description"> + + <p> +Alias for <a href="ExpectationSyntax.html#M000031">raise</a> +</p> + + + + </div> + + + </div> + + <div id="any-args--method" class="method-detail "> - <a name="M000030"></a> + <a name="M000035"></a> <div class="method-heading"> <span class="method-name">any_args?</span><span class="method-args">()</span> @@ -220,11 +247,11 @@ <div class="method-source-code" id="any-args--source"> <pre> -<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 74</span> +<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 75</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">any_args?</span> <span class="ruby-ivar">@any_args</span> <span class="ruby-keyword kw">end</span></pre> </div> @@ -233,11 +260,11 @@ </div> <div id="raise-method" class="method-detail "> - <a name="M000027"></a> + <a name="M000031"></a> <div class="method-heading"> <span class="method-name">raise</span><span class="method-args">(*args)</span> @@ -245,35 +272,36 @@ </div> <div class="method-description"> - <p> -tell the expectation it needs to raise an error with the specified -arguments -</p> + <p class="missing-docs">(Not documented)</p> <div class="method-source-code" id="raise-source"> <pre> -<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 57</span> +<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 58</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">raise</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) <span class="ruby-ivar">@error_args</span> = <span class="ruby-identifier">args</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre> </div> </div> + <div class="aliases"> + Also aliased as: <a href="ExpectationSyntax.html#M000032">actual_raise</a> + </div> + </div> <div id="return-method" class="method-detail "> - <a name="M000026"></a> + <a name="M000030"></a> <div class="method-heading"> <span class="method-name">return</span><span class="method-args">(value=nil)</span> @@ -306,11 +334,11 @@ </div> <div id="super-after-method" class="method-detail "> - <a name="M000029"></a> + <a name="M000034"></a> <div class="method-heading"> <span class="method-name">super_after</span><span class="method-args">()</span> @@ -328,11 +356,11 @@ <div class="method-source-code" id="super-after-source"> <pre> -<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 68</span> +<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 69</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_after</span> <span class="ruby-ivar">@super</span> = <span class="ruby-identifier">:after</span> <span class="ruby-keyword kw">end</span></pre> </div> @@ -341,11 +369,11 @@ </div> <div id="super-before-method" class="method-detail "> - <a name="M000028"></a> + <a name="M000033"></a> <div class="method-heading"> <span class="method-name">super_before</span><span class="method-args">()</span> @@ -363,11 +391,11 @@ <div class="method-source-code" id="super-before-source"> <pre> -<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 63</span> +<span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 64</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_before</span> <span class="ruby-ivar">@super</span> = <span class="ruby-identifier">:before</span> <span class="ruby-keyword kw">end</span></pre> </div> @@ -376,11 +404,11 @@ </div> <div id="with-method" class="method-detail "> - <a name="M000025"></a> + <a name="M000029"></a> <div class="method-heading"> <span class="method-name">with</span><span class="method-args">(*args)</span> @@ -401,10 +429,10 @@ <div class="method-source-code" id="with-source"> <pre> <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 42</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-ivar">@any_args</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span> + <span class="ruby-ivar">@any_args</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span> <span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre> </div>