mocha 1.10.0.beta.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +20 -0
 - data/RELEASE.md +6 -0
 - data/docs/Mocha.html +2 -2
 - data/docs/Mocha/API.html +46 -22
 - data/docs/Mocha/ClassMethods.html +2 -2
 - data/docs/Mocha/Configuration.html +2 -2
 - data/docs/Mocha/Expectation.html +2 -2
 - data/docs/Mocha/ExpectationError.html +2 -2
 - data/docs/Mocha/ExpectationErrorFactory.html +2 -2
 - data/docs/Mocha/Hooks.html +2 -2
 - data/docs/Mocha/Integration.html +2 -2
 - data/docs/Mocha/Integration/MiniTest.html +2 -2
 - data/docs/Mocha/Integration/MiniTest/Adapter.html +2 -2
 - data/docs/Mocha/Integration/TestUnit.html +2 -2
 - data/docs/Mocha/Integration/TestUnit/Adapter.html +2 -2
 - data/docs/Mocha/Mock.html +2 -2
 - data/docs/Mocha/ObjectMethods.html +2 -2
 - data/docs/Mocha/ParameterMatchers.html +2 -2
 - data/docs/Mocha/ParameterMatchers/AllOf.html +2 -2
 - data/docs/Mocha/ParameterMatchers/AnyOf.html +2 -2
 - data/docs/Mocha/ParameterMatchers/AnyParameters.html +2 -2
 - data/docs/Mocha/ParameterMatchers/Anything.html +2 -2
 - data/docs/Mocha/ParameterMatchers/Base.html +2 -2
 - data/docs/Mocha/ParameterMatchers/Equals.html +2 -2
 - data/docs/Mocha/ParameterMatchers/EquivalentUri.html +2 -2
 - data/docs/Mocha/ParameterMatchers/HasEntries.html +2 -2
 - data/docs/Mocha/ParameterMatchers/HasEntry.html +2 -2
 - data/docs/Mocha/ParameterMatchers/HasKey.html +2 -2
 - data/docs/Mocha/ParameterMatchers/HasValue.html +2 -2
 - data/docs/Mocha/ParameterMatchers/Includes.html +2 -2
 - data/docs/Mocha/ParameterMatchers/InstanceOf.html +2 -2
 - data/docs/Mocha/ParameterMatchers/IsA.html +2 -2
 - data/docs/Mocha/ParameterMatchers/KindOf.html +2 -2
 - data/docs/Mocha/ParameterMatchers/Not.html +2 -2
 - data/docs/Mocha/ParameterMatchers/Optionally.html +2 -2
 - data/docs/Mocha/ParameterMatchers/RegexpMatches.html +2 -2
 - data/docs/Mocha/ParameterMatchers/RespondsWith.html +2 -2
 - data/docs/Mocha/ParameterMatchers/YamlEquivalent.html +2 -2
 - data/docs/Mocha/Sequence.html +2 -2
 - data/docs/Mocha/StateMachine.html +2 -2
 - data/docs/Mocha/StateMachine/State.html +2 -2
 - data/docs/Mocha/StateMachine/StatePredicate.html +2 -2
 - data/docs/Mocha/StubbingError.html +2 -2
 - data/docs/_index.html +3 -3
 - data/docs/file.COPYING.html +2 -2
 - data/docs/file.MIT-LICENSE.html +2 -2
 - data/docs/file.README.html +21 -2
 - data/docs/file.RELEASE.html +10 -2
 - data/docs/frames.html +1 -1
 - data/docs/index.html +21 -2
 - data/docs/top-level-namespace.html +2 -2
 - data/lib/mocha/api.rb +3 -0
 - data/lib/mocha/setup.rb +1 -1
 - data/lib/mocha/version.rb +1 -1
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 36e0a4cb730451038106d6246562a358642a6651206ab432e9a57b4f9744ed50
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: d5094f0893d49a4a3e74b506c887bbb4c2afe18bb7fdefa4a11a63e672799e50
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4cd3f74de8609e8ce4c88ea53a31e590f5d9ba4afdc0626842b85ba9eaf971d5db810b63f3924ea10f0b23f01cfc17e590b49b0169a14d6f9d4f33c64ec0804d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9d10054c6f3c7288f4e220fbcbfbcf9b86aa5466b6e85e2ad536da649f4468856e3a8c8ac73e491b22bd1665af3ae9fc9e2baa35d37f446308f9f6df5cdb97a3
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -102,8 +102,28 @@ Note: There is no need to use a require statement to setup Mocha; RSpec does thi 
     | 
|
| 
       102 
102 
     | 
    
         
             
            require 'mocha/minitest'
         
     | 
| 
       103 
103 
     | 
    
         
             
            ```
         
     | 
| 
       104 
104 
     | 
    
         | 
| 
      
 105 
     | 
    
         
            +
            ##### Cucumber
         
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 108 
     | 
    
         
            +
            # In e.g. features/support/mocha.rb
         
     | 
| 
      
 109 
     | 
    
         
            +
            require 'mocha/api'
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
            World(Mocha::API)
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
            Around do |scenario, block|
         
     | 
| 
      
 114 
     | 
    
         
            +
              begin
         
     | 
| 
      
 115 
     | 
    
         
            +
                mocha_setup
         
     | 
| 
      
 116 
     | 
    
         
            +
                block.call
         
     | 
| 
      
 117 
     | 
    
         
            +
                mocha_verify
         
     | 
| 
      
 118 
     | 
    
         
            +
              ensure
         
     | 
| 
      
 119 
     | 
    
         
            +
                mocha_teardown
         
     | 
| 
      
 120 
     | 
    
         
            +
              end
         
     | 
| 
      
 121 
     | 
    
         
            +
            end
         
     | 
| 
      
 122 
     | 
    
         
            +
            ```
         
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
       105 
124 
     | 
    
         
             
            #### Known Issues
         
     | 
| 
       106 
125 
     | 
    
         | 
| 
      
 126 
     | 
    
         
            +
            * In Mocha v1.10.0 an undocumented feature of `API#mock`, `API#stub` & `API#stub_everything` was changed. Previously when these methods were passed a single symbol, they returned a mock object that responded to the method identified by the symbol. Now Passing a single symbol is equivalent to passing a single string, i.e. it now defines the "name" of the mock object.
         
     | 
| 
       107 
127 
     | 
    
         
             
            * In Mocha v1.2.0 there is a scenario where stubbing a class method originally defined in a module hangs the Ruby interpreter due to [a bug in Ruby v2.3.1](https://bugs.ruby-lang.org/issues/12832). See #272. This was fixed in Mocha v1.2.1.
         
     | 
| 
       108 
128 
     | 
    
         
             
            * Since v1.1.0 Mocha has used prepended modules internally for stubbing methods. There is [an obscure Ruby bug](https://bugs.ruby-lang.org/issues/12876) in many (but not all) versions of Ruby between v2.0 & v2.3 which under certain circumstances may cause your Ruby interpreter to hang. See the Ruby bug report for more details. The bug has been fixed in Ruby v2.3.3 & v2.4.0.
         
     | 
| 
       109 
129 
     | 
    
         
             
            * Stubbing an aliased class method, where the original method is defined in a module that's used to `extend` the class doesn't work in Ruby 1.8.x. See stub_method_defined_on_module_and_aliased_test.rb for an example of this behaviour.
         
     | 
    
        data/RELEASE.md
    CHANGED
    
    | 
         @@ -1,5 +1,11 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Release Notes
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 1.10.0
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            * Improve deprecation warning when requiring 'mocha/setup' (388f44d7)
         
     | 
| 
      
 6 
     | 
    
         
            +
            * Add documentation for Cucumber integration (13ab797b)
         
     | 
| 
      
 7 
     | 
    
         
            +
            * Add documentation about an undocumented feature of `API#mock`, `API#stub` & `API#stub_everything` being changed (7ed2e4e7, d30c1717)
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
       3 
9 
     | 
    
         
             
            ## 1.10.0.beta.1
         
     | 
| 
       4 
10 
     | 
    
         | 
| 
       5 
11 
     | 
    
         
             
            * Hide `ClassMethods#method_visibility` & `#method_exists?` methods to avoid clash with Rails (#428)
         
     | 
    
        data/docs/Mocha.html
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -244,7 +244,7 @@ 
     | 
|
| 
       244 
244 
     | 
    
         
             
            </div>
         
     | 
| 
       245 
245 
     | 
    
         | 
| 
       246 
246 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       247 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 247 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       248 
248 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       249 
249 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       250 
250 
     | 
    
         
             
            </div>
         
     | 
    
        data/docs/Mocha/API.html
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::API
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -348,6 +348,14 @@ 
     | 
|
| 
       348 
348 
     | 
    
         
             
                    <div class="docstring">
         
     | 
| 
       349 
349 
     | 
    
         
             
              <div class="discussion">
         
     | 
| 
       350 
350 
     | 
    
         | 
| 
      
 351 
     | 
    
         
            +
              <div class="note notetag">
         
     | 
| 
      
 352 
     | 
    
         
            +
                <strong>Note:</strong>
         
     | 
| 
      
 353 
     | 
    
         
            +
                <div class='inline'>
         
     | 
| 
      
 354 
     | 
    
         
            +
            <p>Prior to v1.10.0 when <code>name</code> was a <code>Symbol</code>, this method returned an unnamed <code>Mock</code> that stubbed the method identified by <code>name</code>. This was undocumented behaviour and it no longer exists.</p>
         
     | 
| 
      
 355 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 356 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 357 
     | 
    
         
            +
             
     | 
| 
      
 358 
     | 
    
         
            +
             
     | 
| 
       351 
359 
     | 
    
         | 
| 
       352 
360 
     | 
    
         
             
              </div>
         
     | 
| 
       353 
361 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -494,12 +502,12 @@ 
     | 
|
| 
       494 
502 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       495 
503 
     | 
    
         | 
| 
       496 
504 
     | 
    
         | 
| 
       497 
     | 
    
         
            -
            62
         
     | 
| 
       498 
505 
     | 
    
         
             
            63
         
     | 
| 
       499 
     | 
    
         
            -
            64 
     | 
| 
      
 506 
     | 
    
         
            +
            64
         
     | 
| 
      
 507 
     | 
    
         
            +
            65</pre>
         
     | 
| 
       500 
508 
     | 
    
         
             
                </td>
         
     | 
| 
       501 
509 
     | 
    
         
             
                <td>
         
     | 
| 
       502 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line  
     | 
| 
      
 510 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line 63</span>
         
     | 
| 
       503 
511 
     | 
    
         | 
| 
       504 
512 
     | 
    
         
             
            <span class='kw'>def</span> <span class='id identifier rubyid_mock'>mock</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
         
     | 
| 
       505 
513 
     | 
    
         
             
              <span class='id identifier rubyid_create_mock'>create_mock</span><span class='lparen'>(</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_mock'>mock</span><span class='comma'>,</span> <span class='id identifier rubyid_expectations'>expectations</span><span class='op'>|</span> <span class='id identifier rubyid_mock'>mock</span><span class='period'>.</span><span class='id identifier rubyid_expects'>expects</span><span class='lparen'>(</span><span class='id identifier rubyid_expectations'>expectations</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
         
     | 
| 
         @@ -580,12 +588,12 @@ 
     | 
|
| 
       580 
588 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       581 
589 
     | 
    
         | 
| 
       582 
590 
     | 
    
         | 
| 
       583 
     | 
    
         
            -
             
     | 
| 
       584 
     | 
    
         
            -
             
     | 
| 
       585 
     | 
    
         
            -
             
     | 
| 
      
 591 
     | 
    
         
            +
            133
         
     | 
| 
      
 592 
     | 
    
         
            +
            134
         
     | 
| 
      
 593 
     | 
    
         
            +
            135</pre>
         
     | 
| 
       586 
594 
     | 
    
         
             
                </td>
         
     | 
| 
       587 
595 
     | 
    
         
             
                <td>
         
     | 
| 
       588 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line  
     | 
| 
      
 596 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line 133</span>
         
     | 
| 
       589 
597 
     | 
    
         | 
| 
       590 
598 
     | 
    
         
             
            <span class='kw'>def</span> <span class='id identifier rubyid_sequence'>sequence</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
         
     | 
| 
       591 
599 
     | 
    
         
             
              <span class='const'><span class='object_link'><a href="Sequence.html" title="Mocha::Sequence (class)">Sequence</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
         
     | 
| 
         @@ -679,12 +687,12 @@ 
     | 
|
| 
       679 
687 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       680 
688 
     | 
    
         | 
| 
       681 
689 
     | 
    
         | 
| 
       682 
     | 
    
         
            -
             
     | 
| 
       683 
     | 
    
         
            -
             
     | 
| 
       684 
     | 
    
         
            -
             
     | 
| 
      
 690 
     | 
    
         
            +
            163
         
     | 
| 
      
 691 
     | 
    
         
            +
            164
         
     | 
| 
      
 692 
     | 
    
         
            +
            165</pre>
         
     | 
| 
       685 
693 
     | 
    
         
             
                </td>
         
     | 
| 
       686 
694 
     | 
    
         
             
                <td>
         
     | 
| 
       687 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line  
     | 
| 
      
 695 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line 163</span>
         
     | 
| 
       688 
696 
     | 
    
         | 
| 
       689 
697 
     | 
    
         
             
            <span class='kw'>def</span> <span class='id identifier rubyid_states'>states</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
         
     | 
| 
       690 
698 
     | 
    
         
             
              <span class='const'>Mockery</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_new_state_machine'>new_state_machine</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
         
     | 
| 
         @@ -745,6 +753,14 @@ 
     | 
|
| 
       745 
753 
     | 
    
         
             
                    <div class="docstring">
         
     | 
| 
       746 
754 
     | 
    
         
             
              <div class="discussion">
         
     | 
| 
       747 
755 
     | 
    
         | 
| 
      
 756 
     | 
    
         
            +
              <div class="note notetag">
         
     | 
| 
      
 757 
     | 
    
         
            +
                <strong>Note:</strong>
         
     | 
| 
      
 758 
     | 
    
         
            +
                <div class='inline'>
         
     | 
| 
      
 759 
     | 
    
         
            +
            <p>Prior to v1.10.0 when <code>name</code> was a <code>Symbol</code>, this method returned an unnamed <code>Mock</code> that stubbed the method identified by <code>name</code>. This was undocumented behaviour and it no longer exists.</p>
         
     | 
| 
      
 760 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 761 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 762 
     | 
    
         
            +
             
     | 
| 
      
 763 
     | 
    
         
            +
             
     | 
| 
       748 
764 
     | 
    
         | 
| 
       749 
765 
     | 
    
         
             
              </div>
         
     | 
| 
       750 
766 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -873,12 +889,12 @@ 
     | 
|
| 
       873 
889 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       874 
890 
     | 
    
         | 
| 
       875 
891 
     | 
    
         | 
| 
       876 
     | 
    
         
            -
             
     | 
| 
       877 
     | 
    
         
            -
             
     | 
| 
       878 
     | 
    
         
            -
             
     | 
| 
      
 892 
     | 
    
         
            +
            86
         
     | 
| 
      
 893 
     | 
    
         
            +
            87
         
     | 
| 
      
 894 
     | 
    
         
            +
            88</pre>
         
     | 
| 
       879 
895 
     | 
    
         
             
                </td>
         
     | 
| 
       880 
896 
     | 
    
         
             
                <td>
         
     | 
| 
       881 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line  
     | 
| 
      
 897 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line 86</span>
         
     | 
| 
       882 
898 
     | 
    
         | 
| 
       883 
899 
     | 
    
         
             
            <span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
         
     | 
| 
       884 
900 
     | 
    
         
             
              <span class='id identifier rubyid_create_mock'>create_mock</span><span class='lparen'>(</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_stub'>stub</span><span class='comma'>,</span> <span class='id identifier rubyid_expectations'>expectations</span><span class='op'>|</span> <span class='id identifier rubyid_stub'>stub</span><span class='period'>.</span><span class='id identifier rubyid_stubs'>stubs</span><span class='lparen'>(</span><span class='id identifier rubyid_expectations'>expectations</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
         
     | 
| 
         @@ -939,6 +955,14 @@ 
     | 
|
| 
       939 
955 
     | 
    
         
             
                    <div class="docstring">
         
     | 
| 
       940 
956 
     | 
    
         
             
              <div class="discussion">
         
     | 
| 
       941 
957 
     | 
    
         | 
| 
      
 958 
     | 
    
         
            +
              <div class="note notetag">
         
     | 
| 
      
 959 
     | 
    
         
            +
                <strong>Note:</strong>
         
     | 
| 
      
 960 
     | 
    
         
            +
                <div class='inline'>
         
     | 
| 
      
 961 
     | 
    
         
            +
            <p>Prior to v1.10.0 when <code>name</code> was a <code>Symbol</code>, this method returned an unnamed <code>Mock</code> that stubbed everything. This was undocumented behaviour and it no longer exists.</p>
         
     | 
| 
      
 962 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 963 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 964 
     | 
    
         
            +
             
     | 
| 
      
 965 
     | 
    
         
            +
             
     | 
| 
       942 
966 
     | 
    
         | 
| 
       943 
967 
     | 
    
         
             
              </div>
         
     | 
| 
       944 
968 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -1085,15 +1109,15 @@ 
     | 
|
| 
       1085 
1109 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       1086 
1110 
     | 
    
         | 
| 
       1087 
1111 
     | 
    
         | 
| 
       1088 
     | 
    
         
            -
            107
         
     | 
| 
       1089 
     | 
    
         
            -
            108
         
     | 
| 
       1090 
     | 
    
         
            -
            109
         
     | 
| 
       1091 
1112 
     | 
    
         
             
            110
         
     | 
| 
       1092 
1113 
     | 
    
         
             
            111
         
     | 
| 
       1093 
     | 
    
         
            -
            112 
     | 
| 
      
 1114 
     | 
    
         
            +
            112
         
     | 
| 
      
 1115 
     | 
    
         
            +
            113
         
     | 
| 
      
 1116 
     | 
    
         
            +
            114
         
     | 
| 
      
 1117 
     | 
    
         
            +
            115</pre>
         
     | 
| 
       1094 
1118 
     | 
    
         
             
                </td>
         
     | 
| 
       1095 
1119 
     | 
    
         
             
                <td>
         
     | 
| 
       1096 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line  
     | 
| 
      
 1120 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/mocha/api.rb', line 110</span>
         
     | 
| 
       1097 
1121 
     | 
    
         | 
| 
       1098 
1122 
     | 
    
         
             
            <span class='kw'>def</span> <span class='id identifier rubyid_stub_everything'>stub_everything</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
         
     | 
| 
       1099 
1123 
     | 
    
         
             
              <span class='id identifier rubyid_create_mock'>create_mock</span><span class='lparen'>(</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_stub'>stub</span><span class='comma'>,</span> <span class='id identifier rubyid_expectations'>expectations</span><span class='op'>|</span>
         
     | 
| 
         @@ -1119,7 +1143,7 @@ 
     | 
|
| 
       1119 
1143 
     | 
    
         
             
            </div>
         
     | 
| 
       1120 
1144 
     | 
    
         | 
| 
       1121 
1145 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       1122 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 1146 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       1123 
1147 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       1124 
1148 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       1125 
1149 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::ClassMethods
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -254,7 +254,7 @@ 
     | 
|
| 
       254 
254 
     | 
    
         
             
            </div>
         
     | 
| 
       255 
255 
     | 
    
         | 
| 
       256 
256 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       257 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 257 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       258 
258 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       259 
259 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       260 
260 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Class: Mocha::Configuration
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -1373,7 +1373,7 @@ satisfied expectations: 
     | 
|
| 
       1373 
1373 
     | 
    
         
             
            </div>
         
     | 
| 
       1374 
1374 
     | 
    
         | 
| 
       1375 
1375 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       1376 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 1376 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:41 2019 by
         
     | 
| 
       1377 
1377 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       1378 
1378 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       1379 
1379 
     | 
    
         
             
            </div>
         
     | 
    
        data/docs/Mocha/Expectation.html
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Class: Mocha::Expectation
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -2644,7 +2644,7 @@ 
     | 
|
| 
       2644 
2644 
     | 
    
         
             
            </div>
         
     | 
| 
       2645 
2645 
     | 
    
         | 
| 
       2646 
2646 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       2647 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 2647 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:41 2019 by
         
     | 
| 
       2648 
2648 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       2649 
2649 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       2650 
2650 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Exception: Mocha::ExpectationError
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -142,7 +142,7 @@ 
     | 
|
| 
       142 
142 
     | 
    
         
             
            </div>
         
     | 
| 
       143 
143 
     | 
    
         | 
| 
       144 
144 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       145 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 145 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:41 2019 by
         
     | 
| 
       146 
146 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       147 
147 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       148 
148 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Class: Mocha::ExpectationErrorFactory
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -250,7 +250,7 @@ 
     | 
|
| 
       250 
250 
     | 
    
         
             
            </div>
         
     | 
| 
       251 
251 
     | 
    
         | 
| 
       252 
252 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       253 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 253 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:41 2019 by
         
     | 
| 
       254 
254 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       255 
255 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       256 
256 
     | 
    
         
             
            </div>
         
     | 
    
        data/docs/Mocha/Hooks.html
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::Hooks
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -360,7 +360,7 @@ 
     | 
|
| 
       360 
360 
     | 
    
         
             
            </div>
         
     | 
| 
       361 
361 
     | 
    
         | 
| 
       362 
362 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       363 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 363 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       364 
364 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       365 
365 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       366 
366 
     | 
    
         
             
            </div>
         
     | 
    
        data/docs/Mocha/Integration.html
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::Integration
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -115,7 +115,7 @@ 
     | 
|
| 
       115 
115 
     | 
    
         
             
            </div>
         
     | 
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       118 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 118 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       119 
119 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       120 
120 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       121 
121 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::Integration::MiniTest
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -113,7 +113,7 @@ 
     | 
|
| 
       113 
113 
     | 
    
         
             
            </div>
         
     | 
| 
       114 
114 
     | 
    
         | 
| 
       115 
115 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       116 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 116 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       117 
117 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       118 
118 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       119 
119 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::Integration::MiniTest::Adapter
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -154,7 +154,7 @@ 
     | 
|
| 
       154 
154 
     | 
    
         
             
            </div>
         
     | 
| 
       155 
155 
     | 
    
         | 
| 
       156 
156 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       157 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 157 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       158 
158 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       159 
159 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       160 
160 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::Integration::TestUnit
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -113,7 +113,7 @@ 
     | 
|
| 
       113 
113 
     | 
    
         
             
            </div>
         
     | 
| 
       114 
114 
     | 
    
         | 
| 
       115 
115 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       116 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 116 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       117 
117 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       118 
118 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       119 
119 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::Integration::TestUnit::Adapter
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -154,7 +154,7 @@ 
     | 
|
| 
       154 
154 
     | 
    
         
             
            </div>
         
     | 
| 
       155 
155 
     | 
    
         | 
| 
       156 
156 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       157 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 157 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       158 
158 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       159 
159 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       160 
160 
     | 
    
         
             
            </div>
         
     | 
    
        data/docs/Mocha/Mock.html
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Class: Mocha::Mock
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -1227,7 +1227,7 @@ object.stubbed_method # => unexpected invocation: #<Mock:mock>.stubbed_ 
     | 
|
| 
       1227 
1227 
     | 
    
         
             
            </div>
         
     | 
| 
       1228 
1228 
     | 
    
         | 
| 
       1229 
1229 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       1230 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 1230 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       1231 
1231 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       1232 
1232 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       1233 
1233 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
7 
     | 
    
         
             
              Module: Mocha::ObjectMethods
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Mocha 1.10.0 
     | 
| 
      
 9 
     | 
    
         
            +
                — Mocha 1.10.0
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -755,7 +755,7 @@ 
     | 
|
| 
       755 
755 
     | 
    
         
             
            </div>
         
     | 
| 
       756 
756 
     | 
    
         | 
| 
       757 
757 
     | 
    
         
             
                  <div id="footer">
         
     | 
| 
       758 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 758 
     | 
    
         
            +
              Generated on Mon Dec  2 17:48:40 2019 by
         
     | 
| 
       759 
759 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       760 
760 
     | 
    
         
             
              0.9.20 (ruby-2.6.5).
         
     | 
| 
       761 
761 
     | 
    
         
             
            </div>
         
     |