mocha 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/README.rdoc +1 -1
  2. data/RELEASE.rdoc +31 -28
  3. data/doc/.nojekyll +0 -0
  4. data/doc/Mocha.html +2 -2
  5. data/doc/Mocha/API.html +2 -2
  6. data/doc/Mocha/ClassMethods.html +7 -7
  7. data/doc/Mocha/Configuration.html +2 -2
  8. data/doc/Mocha/Expectation.html +2 -2
  9. data/doc/Mocha/Mock.html +2 -2
  10. data/doc/Mocha/ObjectMethods.html +17 -17
  11. data/doc/Mocha/ParameterMatchers.html +2 -2
  12. data/doc/Mocha/ParameterMatchers/AllOf.html +2 -2
  13. data/doc/Mocha/ParameterMatchers/AnyOf.html +2 -2
  14. data/doc/Mocha/ParameterMatchers/AnyParameters.html +2 -2
  15. data/doc/Mocha/ParameterMatchers/Anything.html +2 -2
  16. data/doc/Mocha/ParameterMatchers/Base.html +2 -2
  17. data/doc/Mocha/ParameterMatchers/Equals.html +2 -2
  18. data/doc/Mocha/ParameterMatchers/HasEntries.html +2 -2
  19. data/doc/Mocha/ParameterMatchers/HasEntry.html +2 -2
  20. data/doc/Mocha/ParameterMatchers/HasKey.html +2 -2
  21. data/doc/Mocha/ParameterMatchers/HasValue.html +2 -2
  22. data/doc/Mocha/ParameterMatchers/Includes.html +2 -2
  23. data/doc/Mocha/ParameterMatchers/InstanceOf.html +2 -2
  24. data/doc/Mocha/ParameterMatchers/IsA.html +2 -2
  25. data/doc/Mocha/ParameterMatchers/KindOf.html +2 -2
  26. data/doc/Mocha/ParameterMatchers/Not.html +2 -2
  27. data/doc/Mocha/ParameterMatchers/Optionally.html +2 -2
  28. data/doc/Mocha/ParameterMatchers/QueryStringMatches.html +2 -2
  29. data/doc/Mocha/ParameterMatchers/RegexpMatches.html +2 -2
  30. data/doc/Mocha/ParameterMatchers/RespondsWith.html +2 -2
  31. data/doc/Mocha/ParameterMatchers/YamlEquivalent.html +2 -2
  32. data/doc/Mocha/Sequence.html +2 -2
  33. data/doc/Mocha/StateMachine.html +2 -2
  34. data/doc/Mocha/StateMachine/State.html +2 -2
  35. data/doc/Mocha/StateMachine/StatePredicate.html +2 -2
  36. data/doc/Mocha/StubbingError.html +2 -2
  37. data/doc/Mocha/UnexpectedInvocation.html +2 -2
  38. data/doc/_index.html +3 -3
  39. data/doc/file.COPYING.html +2 -2
  40. data/doc/file.MIT-LICENSE.html +2 -2
  41. data/doc/file.README.html +4 -4
  42. data/doc/file.RELEASE.html +39 -30
  43. data/doc/file.misc.html +2 -2
  44. data/doc/file.mocha.html +2 -2
  45. data/doc/file.stubba.html +2 -2
  46. data/doc/frames.html +1 -1
  47. data/doc/index.html +4 -4
  48. data/doc/top-level-namespace.html +2 -2
  49. data/lib/mocha/class_method.rb +1 -1
  50. data/lib/mocha/object.rb +3 -0
  51. data/lib/mocha/version.rb +1 -1
  52. data/test/unit/class_method_test.rb +7 -0
  53. data/test/unit/object_test.rb +5 -0
  54. metadata +12 -11
data/README.rdoc CHANGED
@@ -28,7 +28,7 @@ If you're using Bundler, ensure the correct load order by not auto-requiring Moc
28
28
  require "test/unit"
29
29
  require "mocha"
30
30
 
31
- Note that versions 0.10.2 & 0.10.3 included a bug. Please do not use these versions.
31
+ Note that versions 0.10.2, 0.10.3 & 0.11.0 included a bug. Please do not use these versions.
32
32
 
33
33
  Or install the {Rails}[http://www.rubyonrails.org/] plugin...
34
34
 
data/RELEASE.rdoc CHANGED
@@ -1,7 +1,10 @@
1
- = 0.11.1 ()
1
+ = 0.11.2
2
+ * Rails has a Request class which defines its own #method method. This broke the new mechanism for stubbing a method. This release includes a slightly modified version of fix #77 provided by @sikachu. See https://github.com/rails/rails/pull/5907 for further info.
3
+
4
+ = 0.11.1
2
5
  * In Ruby 1.8.7 methods accepting a block parameter were incorrectly restored without the block parameter after being stubbed. Fix for #76.
3
6
 
4
- = 0.11.0 (fa601c89a7f5314dc3d258391a99c6a9e25cefb3)
7
+ = 0.11.0 (this version was yanked from rubygems.org)
5
8
  * Store original method when stubbing rather than using alias_method. This fixes #41, #47, #74 and all tests now pass on both Ruby 1.8.7 and 1.9.3.
6
9
  * Attempting to stub a method on a frozen object should fail fast. See #68.
7
10
  * Prevent stubbing a method on nil by default. See #68.
@@ -13,14 +16,14 @@
13
16
  * Improve documentation for ObjectMethods.
14
17
  * Provide a way to run multiple tests within a single acceptance test method.
15
18
 
16
- = 0.10.5 (a5a64cf9755b21d4a30e446232654d1c0fc6f151)
19
+ = 0.10.5
17
20
  * Fix for issue #66 (hopefully without regressing on issue #63) - Mocha::Mock has Mocha::Mockery as a dependency. Stop trying to pretend otherwise. Thanks to @kennyj for reporting.
18
21
  * Fix a bunch of warnings in Ruby 1.9. There are still the 6 test failures mentioned in issue #41 which I suspect are due to the introspection gem not being Ruby 1.9-compatible.
19
22
  * Add links to README for source code & issue tracker.
20
23
  * Fix for issue #67 - Make the travis-ci badge visible in the README. Thanks to Diego Plentz for pull request.
21
24
  * Fix for issue #70 - Rename Mock#expectations to Mock#__expectations__ to avoid conflicts. Thanks to Jeremy Stephens for pull request.
22
25
 
23
- = 0.10.4 (babdd656c361ac65f25948104adf612e59174a5e)
26
+ = 0.10.4
24
27
  * Fix for issue #65 - expectations not being verified in subsequent tests.
25
28
  * Fix for issue #63 - require Mocha::Mockery at Mocha::Mock class load time and not on invocation of Mock#method_missing.
26
29
  * Fix for issue #45 - raise ArgumentError if Mocha::ParameterMatchers#has_entry is given
@@ -28,13 +31,13 @@ Hash with wrong number of entries.
28
31
  * Make global variable name more obscure to avoid clashes with other libraries.
29
32
  * Move travis-ci-related gemfiles into their own directory.
30
33
 
31
- = 0.10.3 (e7f88af8e7c3396bc85fe9f9cb9e5f5fef04bea2)
34
+ = 0.10.3
32
35
  * Fix for issue #57. Gem::Requirement#=~ was only added in rubygems v1.8.0, but Object#=~ means the result of various monkey-patching checks is always false/nil for earlier versions of rubygems. However, the method it aliases #satisfied_by? has existed since Gem::Dependency was extracted from Gem::Version in rubygems v0.9.4.4, so it's much safer to use that. Thanks to fguillen for reporting and helping with diagnosis.
33
36
 
34
- = 0.10.2 (e05d9a555f1cf97c5961900dab0d884e9753257b)
37
+ = 0.10.2
35
38
  * Merge pull request #53. Unstubbing a method should not remove expectations for other stubbed methods. Fixes #52. Thanks to saikat.
36
39
 
37
- = 0.10.1 (f631a4ba22c6ed4929c52b0520311a9a84034a20)
40
+ = 0.10.1
38
41
  * Merge pull request #51. Use Gem::Requirement & Gem::Version for version comparison. Fixes issue #50. Thanks to meineerde.
39
42
  * Fixed typo in rdoc for Mocha::ObjectMethods.
40
43
  * Improve README as suggested in issue #46. Explain that Mocha must be loaded after test libraries and how to achieve this using Bundler.
@@ -44,7 +47,7 @@ Hash with wrong number of entries.
44
47
  * Support for MiniTest up to v2.6.2 has been verified.
45
48
  * Add explicit development dependency on coderay for generating syntax-highlighted code examples.
46
49
 
47
- = 0.10.0 (68a4a59e1af74baf3929af418f73f5627bba548d)
50
+ = 0.10.0
48
51
  * Add Expectation#throws to allow a stubbed method to use Kernel#throw.
49
52
  * Updates for versions of Test::Unit up to and including v2.3.3 (including patch by Jens Fahnenbruck).
50
53
  * Updates for versions of MiniTest up to and including v2.5.1.
@@ -63,13 +66,13 @@ Hash with wrong number of entries.
63
66
  * Remove the `use_test_unit_gem` MOCHA_OPTION which hasn't worked since we switched to bundler - we can now run the tests specifying a different Gemfile instead.
64
67
  * Use multiple Gemfiles seems to run Travis CI builds against multiple version of test-unit & minitest.
65
68
 
66
- = 0.9.12 (8bb523e8467626c23b271eb529c33fb118e368fe)
69
+ = 0.9.12
67
70
  * Make Mocha's tests pass under Ruby 1.9.2 i.e. using MiniTest. One of the main issues was that we were not parsing stacktraces on MiniTest errors comprehensively enough.
68
71
  * Avoid 'circular require considered harmful' warning when running Mocha's tests in Ruby 1.9.2
69
72
  * Make performance tests work on Ruby 1.9.2 i.e. using MiniTest.
70
73
  * Declare rake as a *development* dependency with newer versions of Rubygems since it's only needed to carry out developer-related tasks.
71
74
 
72
- = 0.9.11 (1613ed2267fef5927ea06adfdbcf512b89eadaad)
75
+ = 0.9.11
73
76
  * Added explicit support for minitest v1.5.0 to v2.0.2.
74
77
  * Make testable by rubygems-test.
75
78
  * Update links to my blog and make other links consistent.
@@ -77,13 +80,13 @@ Hash with wrong number of entries.
77
80
  * Include unexpected invocation in failure message and change the language slightly to make the failure message less confusing. See http://floehopper.lighthouseapp.com/projects/22289/tickets/52.
78
81
  * No need to create regular expression every time the BacktraceFilter#filtered method is called. See http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/66.
79
82
 
80
- = 0.9.10 (31182ea8b38b79aa50702aa839f6a29ebcf7d684)
83
+ = 0.9.10
81
84
  * Added Mocha::ObjectMethods#unstub method - https://github.com/floehopper/mocha/issues#issue/6
82
85
  * Inherit Mocha::ExpectationError from Exception instead of StandardError to reduce the chances of a test passing by accident - thanks to James Sanders (jsanders) - https://github.com/floehopper/mocha/issues#issue/15
83
86
  * Fixed bug - GitHub README page to link correctly to code examples - https://github.com/floehopper/mocha/issues/closed#issue/11
84
87
  * Fixed bug - PASSTHROUGH_EXCEPTIONS are defined on MiniTest::Unit::TestCase not in Mocha - thanks to Brian Troutwine (blt) - https://github.com/floehopper/mocha/issues/closed#issue/14
85
88
 
86
- = 0.9.9 (ee3a79db4d52c3339e8acf07505e01236a2b4810)
89
+ = 0.9.9
87
90
  * Avoid loading bits of the test-unit gem by accident. This is an attempt at a fix for the problem that James Adam reported [1]. By using 'load' instead of 'require' to detect the version of Test::Unit, we can avoid rubygems trying to load bits of the test-unit gem when it's not wanted. [1] http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/50#ticket-50-13
88
91
  * Fix exception when running rake without test-unit gem. When test-unit gem >=v2.0.0 was installed but the "use_test_unit_gem" MOCHA_OPTIONS was not specified, a "comparison of Fixnum with Hash failed" exception was being raised when running the performance tests. This was because bits of the test-unit gem were being loaded accidentally and a Hash was being incorrectly supplied to the TestRunner.run method.
89
92
  * Explicitly require rubygems for running tests via rake using test-unit gem.
@@ -101,17 +104,17 @@ Hash with wrong number of entries.
101
104
  * Improved RDoc including a change suggested by Rohit Arondekar (rohit).
102
105
  * Updated gemspec as requested by Sam Woodard (shwoodard).
103
106
 
104
- = 0.9.8 (645024765b2d92018efc511652e1174163844e39)
107
+ = 0.9.8
105
108
  * Fixed bug "NameError raised when using Mocha as a Rails plug-in" - http://floehopper.lighthouseapp.com/projects/22289/tickets/53. Since 0.9.6 the Rails plugin has been broken. See bug report for details. You will need to explicitly load Mocha *after* the test framework has been loaded, e.g. by adding "require 'mocha'" at the bottom of test/test_helper.rb.
106
109
  * Make Mocha::ParameterMatchers#regexp_matches, #includes, #has_value, #has_key more robust. Thanks to Sander Hartlage.
107
110
  * Allow passing a block to Mocha::Configuration methods to only change configuration for the duration of the block. Thanks to Dan Manges.
108
111
  * Fixed bug "doc generation fails in 0.9.7 gem" - http://floehopper.lighthouseapp.com/projects/22289/tickets/51.
109
112
  * Remove rdoc template incorporating google analytics from source control. The file just needs to exist locally and be ignored by source control. This should stop the warning showing up on e.g. RunCodeRun build results.
110
113
 
111
- = 0.9.7 (80d816f250dc13aaf856f3f9cbd97ebe9c371839)
114
+ = 0.9.7
112
115
  * Although I had provided a deprecation warning for people using Mocha::Standalone, I had assumed people wouldn't be explicitly loading the mocha/standalone.rb file. It turns out this assumption was incorrect at least in the case of Rspec. This is now fixed.
113
116
 
114
- = 0.9.6 (57f8f77d715b7f1d9efee2e1a9438f7905c0006b)
117
+ = 0.9.6
115
118
  * Version 2.0.1 of the test-unit gem introduced a private 'run_test' method on TestCase which clashed with the public TestRunner#run_test method. So this latter method has been renamed to 'run_as_test'.
116
119
  * Stop requiring rubygems - this should be an environmental choice for the user. http://gist.github.com/54177 - describes why requiring rubygems in your library code is a bad idea.
117
120
  * It seems like overkill to vendorize coderay and meta_project when they're only needed to generate the examples for documentation and for publishing files on RubyForge. So I'm removing them and installing them locally as gems when I need them.
@@ -126,30 +129,30 @@ Hash with wrong number of entries.
126
129
  * Chad Humphries pointed out that in Ruby 1.9.1, if you are not using Test::Unit or MiniTest, Mocha will attempt to load and monkey-patch Test::Unit. Mocha will now only monkey-patch Test::Unit and/or MiniTest if they have already been loaded. MiniTest tests will now run in both Ruby 1.8.6 (with MiniTest gem) and in Ruby 1.9.1 (with MiniTest std lib). See Ligthouse ticket - http://floehopper.lighthouseapp.com/projects/22289/tickets/49.
127
130
  * Made Mocha compatible with minitest 1.4.0 and above (thanks to Denis Defreyne).
128
131
 
129
- = 0.9.5 (93cad010345ce5d68f31422cfc32ed9dd6de13ec)
132
+ = 0.9.5
130
133
  * Fixed Lighthouse bug #32 - stub_everything should mean mock responds to anything.
131
134
  * Added Expectation#twice to improve readability. Thanks to pull request from Celestino Gomes.
132
135
  * In Ruby 1.9.1, requiring 'test/unit' loads a thin wrapper around MiniTest and Test::Unit::TestCase ends up inheriting from MiniTest::Unit::TestCase. So we need to avoid including the Mocha modules more than once to avoid nasty consequences. Thanks to Matthias Hennemeyer for help with this.
133
136
  * Ruby 1.9 includes rake, but not rake/contrib. For the moment I've moved the sshpublisher require into the only rake task that needs it, so that I can at least run the tests in Ruby 1.9. It looks like I will need to build a rake/contrib gem or similar to get this working properly - http://intertwingly.net/blog/2008/01/07/Rake-Contrib-for-1-9
134
137
 
135
- = 0.9.4 (8a59c6ff0f99f34b02bd99f19536a7893be2b340)
138
+ = 0.9.4
136
139
  * Added mocha.gemspec file generated with Chad Woolley's new rake task, so that a floehopper-mocha gem will get built on GitHub.
137
140
  * Add rake task to update mocha.gemspec with unique version, which will cause gem to be auto-built on github
138
141
  * As Tobias Crawley correctly pointed out in feature request #23055 "stubs(with_hash) not working with existing object" [1], following the principle of least surprise, it should be possible to call ObjectMethods#expects & ObjectMethods#stubs with a Hash of method_names vs return_values like you can with Mock#expects & Mock#stubs. I've also updated & improved the docs to reflect the changes. [1] http://rubyforge.org/tracker/index.php?func=detail&aid=23055&group_id=1917&atid=7480
139
142
  * Removed deprecated gem autorequire.
140
143
 
141
- = 0.9.3 (8219bb2d2881c8529c93fc21e97a11d01203c759)
144
+ = 0.9.3
142
145
  * Added support for MiniTest thanks to Jeff Smick.
143
146
  * Fixed a possible bug with some of the non-default Configuration options relating to the argument to Object#respond_to?
144
147
  * As per Jay Fields recommendations [1] and with further impetus from a talk at Ruby Manor, any methods added to core classes are now added by including a module. This means that Mocha is a better citizen of the Ruby world and it's behaviour is more easily extended. [1] http://blog.jayfields.com/2008/07/ruby-underuse-of-modules.html & http://blog.jayfields.com/2008/07/ruby-redefine-method-behavior.html
145
148
  * Removed deprecated gem autorequire.
146
149
 
147
- = 0.9.2 (r355)
150
+ = 0.9.2
148
151
  * Improved documentation to address [#22530] 'Mock methods with multiple return values not possible?'
149
152
  * respond_with parameter matcher was not available in tests.
150
153
  * Patch [#22630] Fix for a bug in running Rails tests with Ruby 1.8.7. Array#flatten was being called which in turn was checking whether each element responded to #to_ary. This check was using the two parameter version of #respond_to?, but Mock was only defining a one parameter version.
151
154
 
152
- = 0.9.1 (r349)
155
+ = 0.9.1
153
156
 
154
157
  * Fixed bug #21465 - expects & stubs should support method names as strings (as well as symbols) or fail fast. Convert all expectation method names to a symbol in case they were supplied as a string.
155
158
  * By removing Mock#unexpected_method_called we reduce the number of methods vulnerable to the problem that surfaced in bug #21563.
@@ -162,7 +165,7 @@ Hash with wrong number of entries.
162
165
  * It's more readable to talk about 'once' and 'twice' rather than '1 time' and '2 times'.
163
166
  * Fix bug #20883 - never should raise when called to prevent follow up errors. Fail fast when there are no matching invokable expectations and handle the stub_everything case sensibly. This might not be entirely backwards compatible, but I think the benefits outweigh the risks. The most likely change is that a test that was already failing will now fail faster, which doesn't seem so awful.
164
167
 
165
- = 0.9.0 (r316)
168
+ = 0.9.0
166
169
 
167
170
  * Configurable warnings or errors
168
171
  * when a method on a non-public method is stubbed
@@ -207,16 +210,16 @@ Hash with wrong number of entries.
207
210
  * 15977 in revision 198 - http://rubyforge.org/tracker/index.php?func=detail&aid=15977&group_id=1917&atid=7477
208
211
  * 11885 in revision 156 - http://rubyforge.org/tracker/index.php?func=detail&aid=11885&group_id=1917&atid=7477
209
212
 
210
- = 0.5.5 (r167)
213
+ = 0.5.5
211
214
 
212
215
  - Renamed Matches parameter matcher to RegexpMatches for clarity.
213
216
  - Added noframes tag to rdoc index to assist Google.
214
217
 
215
- = 0.5.4 (r166)
218
+ = 0.5.4
216
219
 
217
220
  - Added matches parameter matcher for matching regular expressions.
218
221
 
219
- = 0.5.3 (r165)
222
+ = 0.5.3
220
223
 
221
224
  - Attempt to fix packaging problems by switching to newer version (1.15.1) of gnutar and setting COPY_EXTENDED_ATTRIBUTES_DISABLE environment variable.
222
225
  - Removed unused ExpectationSequenceError exception.
@@ -224,16 +227,16 @@ Hash with wrong number of entries.
224
227
  - Added Google Webmaster meta tag to rdoc template header.
225
228
  - Put Google Webmaster meta tag in the right header i.e. the one for the index page.
226
229
 
227
- = 0.5.2 (r159)
230
+ = 0.5.2
228
231
 
229
232
  - Fix bug 11885 - "never doesn't work with stub_everything" submitted by Alexander Lang. In fixing this bug, also fixed undiscoverd bug where expected & actual invocation counts were being incorrectly reported which seems to have been introduced when fixes were added for invocation dispatch (see MockedMethodDispatchAcceptanceTest).
230
233
  - Previously when an expectation did not allow more invocations, it was treated as not matching. Now we prefer matching expectations which allow more invocations, but still match expectations which cannot allow more invocations. I think this may be overcomplicating things, but let's see how it goes.
231
234
 
232
- = 0.5.1 (r149)
235
+ = 0.5.1
233
236
 
234
237
  - Fixed bug #11583 "Mocha 0.5.0 throwing unexpected warnings". Also switched on ruby warning for all rake test tasks. Fixed majority of warnings, but some left to fix.
235
238
 
236
- = 0.5.0 (r147)
239
+ = 0.5.0
237
240
 
238
241
  - Parameter Matchers - I’ve added a few Hamcrest-style parameter matchers which are designed to be used inside Expectation#with. The following matchers are currently available: anything(), includes(), has_key(), has_value(), has_entry(), all_of() & any_of(). More to follow soon. The idea is eventually to get rid of the nasty parameter_block option on Expectation#with.
239
242
 
@@ -297,7 +300,7 @@ Hash with wrong number of entries.
297
300
  - Fiddled with mocha_inspect and tests to give more sensible results on x86 platform.
298
301
  - Fixed bug #7834 "infinite_range.rb makes incorrect assumption about to_f" logged by James Moore.
299
302
 
300
- = 0.4.0 (r92)
303
+ = 0.4.0
301
304
 
302
305
  - Allow naming of mocks (patch from Chris Roos).
303
306
  - Specify multiple return values for consecutive calls.
data/doc/.nojekyll ADDED
File without changes
data/doc/Mocha.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sat Apr 21 11:46:13 2012 by
106
+ Generated on Tue Apr 24 11:15:45 2012 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.7.5 (ruby-1.9.3).
109
109
  </div>
data/doc/Mocha/API.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::API
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -889,7 +889,7 @@ alternative way to setup stubbed methods.</p>
889
889
  </div>
890
890
 
891
891
  <div id="footer">
892
- Generated on Sat Apr 21 11:46:13 2012 by
892
+ Generated on Tue Apr 24 11:15:45 2012 by
893
893
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
894
894
  0.7.5 (ruby-1.9.3).
895
895
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ClassMethods
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -211,15 +211,15 @@ non-mock) objects.</p>
211
211
  <pre class="lines">
212
212
 
213
213
 
214
- 228
215
- 229
216
- 230
217
214
  231
218
215
  232
219
- 233</pre>
216
+ 233
217
+ 234
218
+ 235
219
+ 236</pre>
220
220
  </td>
221
221
  <td>
222
- <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 228</span>
222
+ <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 231</span>
223
223
 
224
224
  <span class='kw'>def</span> <span class='id identifier rubyid_any_instance'>any_instance</span>
225
225
  <span class='kw'>if</span> <span class='id identifier rubyid_frozen?'>frozen?</span>
@@ -237,7 +237,7 @@ non-mock) objects.</p>
237
237
  </div>
238
238
 
239
239
  <div id="footer">
240
- Generated on Sat Apr 21 11:46:13 2012 by
240
+ Generated on Tue Apr 24 11:15:45 2012 by
241
241
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
242
242
  0.7.5 (ruby-1.9.3).
243
243
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Configuration
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -462,7 +462,7 @@ being returned to its original value at the end of the block.</p>
462
462
  </div>
463
463
 
464
464
  <div id="footer">
465
- Generated on Sat Apr 21 11:46:13 2012 by
465
+ Generated on Tue Apr 24 11:15:45 2012 by
466
466
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
467
467
  0.7.5 (ruby-1.9.3).
468
468
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Expectation
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -2561,7 +2561,7 @@ methods to be chained.</p>
2561
2561
  </div>
2562
2562
 
2563
2563
  <div id="footer">
2564
- Generated on Sat Apr 21 11:46:13 2012 by
2564
+ Generated on Tue Apr 24 11:15:45 2012 by
2565
2565
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2566
2566
  0.7.5 (ruby-1.9.3).
2567
2567
  </div>
data/doc/Mocha/Mock.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Mock
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -821,7 +821,7 @@ object.stubbed_method # =&gt; unexpected invocation: #&lt;Mock:mock&gt;.stubbed_
821
821
  </div>
822
822
 
823
823
  <div id="footer">
824
- Generated on Sat Apr 21 11:46:13 2012 by
824
+ Generated on Tue Apr 24 11:15:45 2012 by
825
825
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
826
826
  0.7.5 (ruby-1.9.3).
827
827
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ObjectMethods
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -328,9 +328,6 @@ times.</p>
328
328
  <pre class="lines">
329
329
 
330
330
 
331
- 63
332
- 64
333
- 65
334
331
  66
335
332
  67
336
333
  68
@@ -347,10 +344,13 @@ times.</p>
347
344
  79
348
345
  80
349
346
  81
350
- 82</pre>
347
+ 82
348
+ 83
349
+ 84
350
+ 85</pre>
351
351
  </td>
352
352
  <td>
353
- <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 63</span>
353
+ <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 66</span>
354
354
 
355
355
  <span class='kw'>def</span> <span class='id identifier rubyid_expects'>expects</span><span class='lparen'>(</span><span class='id identifier rubyid_expected_methods_vs_return_values'>expected_methods_vs_return_values</span><span class='rparen'>)</span>
356
356
  <span class='kw'>if</span> <span class='id identifier rubyid_expected_methods_vs_return_values'>expected_methods_vs_return_values</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>the[^a-z]*spanish[^a-z]*inquisition</span><span class='regexp_end'>/i</span></span>
@@ -512,9 +512,6 @@ multiple times.</p>
512
512
  <pre class="lines">
513
513
 
514
514
 
515
- 110
516
- 111
517
- 112
518
515
  113
519
516
  114
520
517
  115
@@ -528,10 +525,13 @@ multiple times.</p>
528
525
  123
529
526
  124
530
527
  125
531
- 126</pre>
528
+ 126
529
+ 127
530
+ 128
531
+ 129</pre>
532
532
  </td>
533
533
  <td>
534
- <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 110</span>
534
+ <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 113</span>
535
535
 
536
536
  <span class='kw'>def</span> <span class='id identifier rubyid_stubs'>stubs</span><span class='lparen'>(</span><span class='id identifier rubyid_stubbed_methods_vs_return_values'>stubbed_methods_vs_return_values</span><span class='rparen'>)</span>
537
537
  <span class='kw'>if</span> <span class='id identifier rubyid_frozen?'>frozen?</span>
@@ -631,16 +631,16 @@ satisfied. Use <span class='object_link'><a href="#unstub-instance_method" title
631
631
  <pre class="lines">
632
632
 
633
633
 
634
- 151
635
- 152
636
- 153
637
634
  154
638
635
  155
639
636
  156
640
- 157</pre>
637
+ 157
638
+ 158
639
+ 159
640
+ 160</pre>
641
641
  </td>
642
642
  <td>
643
- <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 151</span>
643
+ <pre class="code"><span class="info file"># File 'lib/mocha/object.rb', line 154</span>
644
644
 
645
645
  <span class='kw'>def</span> <span class='id identifier rubyid_unstub'>unstub</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_method_names'>method_names</span><span class='rparen'>)</span>
646
646
  <span class='id identifier rubyid_mockery'>mockery</span> <span class='op'>=</span> <span class='const'>Mocha</span><span class='op'>::</span><span class='const'>Mockery</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
@@ -659,7 +659,7 @@ satisfied. Use <span class='object_link'><a href="#unstub-instance_method" title
659
659
  </div>
660
660
 
661
661
  <div id="footer">
662
- Generated on Sat Apr 21 11:46:13 2012 by
662
+ Generated on Tue Apr 24 11:15:45 2012 by
663
663
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
664
664
  0.7.5 (ruby-1.9.3).
665
665
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ParameterMatchers
8
8
 
9
- &mdash; Mocha 0.11.1
9
+ &mdash; Mocha 0.11.2
10
10
 
11
11
  </title>
12
12
 
@@ -2706,7 +2706,7 @@ To put it another way, it tests the quack, not the duck.</p>
2706
2706
  </div>
2707
2707
 
2708
2708
  <div id="footer">
2709
- Generated on Sat Apr 21 11:46:13 2012 by
2709
+ Generated on Tue Apr 24 11:15:45 2012 by
2710
2710
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2711
2711
  0.7.5 (ruby-1.9.3).
2712
2712
  </div>