-66
-67
-68
-69
-70
71
72
73
@@ -363,10 +384,15 @@
82
83
84
-85
+85
+86
+87
+88
+89
+90
- # File 'lib/mocha/object_methods.rb', line 66
+ # File 'lib/mocha/object_methods.rb', line 71
def expects(expected_methods_vs_return_values)
if expected_methods_vs_return_values.to_s =~ /the[^a-z]*spanish[^a-z]*inquisition/i
@@ -409,12 +435,9 @@
- Adds an expectation that the specified method may be called any number of
-times with any parameters.
+ Adds an expectation that the specified method may be called any number of times with any parameters.
- The original implementation of the method is replaced during the test and
-then restored at the end of the test. The temporary replacement method has
-the same visibility as the original method.
+ The original implementation of the method is replaced during the test and then restored at the end of the test. The temporary replacement method has the same visibility as the original method.
@@ -448,7 +471,21 @@
product.stubs(:save).returns(true)
-Parameters:
+
+ Overloads:
+
+
+
+ -
+ #stubs(method_name) ⇒ Expectation
+
+
+
+
+
+ -
+ #stubs(stubbed_methods_vs_return_values) ⇒ Expectation
+
+
+
+
+
+
Returns:
@@ -499,8 +559,7 @@
—
- last-built expectation which can be further modified by methods on
-Expectation.
+ last-built expectation which can be further modified by methods on Expectation.
@@ -538,11 +597,6 @@
-115
-116
-117
-118
-119
120
121
122
@@ -554,10 +608,15 @@
128
129
130
-131
+131
+132
+133
+134
+135
+136
|
- # File 'lib/mocha/object_methods.rb', line 115
+ # File 'lib/mocha/object_methods.rb', line 120
def stubs(stubbed_methods_vs_return_values)
if frozen?
@@ -593,17 +652,11 @@
- Removes the specified stubbed methods (added by calls to #expects or
-#stubs) and all expectations associated with them.
+ Removes the specified stubbed methods (added by calls to #expects or #stubs) and all expectations associated with them.
- Restores the original behaviour of the methods before they were stubbed.
-This is normally done automatically at the end of each test, but in some
-circumstances you may want to do it before the end of the
-test.
+ Restores the original behaviour of the methods before they were stubbed. This is normally done automatically at the end of each test, but in some circumstances you may want to do it before the end of the test.
- WARNING: If you #unstub a method which still has unsatisfied
-expectations, you may be removing the only way those expectations can be
-satisfied. Use #unstub with care.
+ WARNING: If you #unstub a method which still has unsatisfied expectations, you may be removing the only way those expectations can be satisfied. Use #unstub with care.
@@ -666,16 +719,16 @@
-156
-157
-158
-159
-160
161
-162
+162
+163
+164
+165
+166
+167
|
- # File 'lib/mocha/object_methods.rb', line 156
+ # File 'lib/mocha/object_methods.rb', line 161
def unstub(*method_names)
mockery = Mocha::Mockery.instance
@@ -702,9 +755,9 @@
diff --git a/docs/Mocha/ParameterMatchers.html b/docs/Mocha/ParameterMatchers.html
index ed3fc04f9..da0be75df 100644
--- a/docs/Mocha/ParameterMatchers.html
+++ b/docs/Mocha/ParameterMatchers.html
@@ -6,7 +6,7 @@
Module: Mocha::ParameterMatchers
- — Mocha 1.9.0
+ — Mocha 1.10.0.alpha
@@ -84,7 +84,7 @@
- Defined in:
- lib/mocha/parameter_matchers.rb,
- lib/mocha/parameter_matchers/not.rb, lib/mocha/parameter_matchers/base.rb, lib/mocha/parameter_matchers/is_a.rb, lib/mocha/parameter_matchers/all_of.rb, lib/mocha/parameter_matchers/any_of.rb, lib/mocha/parameter_matchers/equals.rb, lib/mocha/parameter_matchers/has_key.rb, lib/mocha/parameter_matchers/kind_of.rb, lib/mocha/parameter_matchers/anything.rb, lib/mocha/parameter_matchers/includes.rb, lib/mocha/parameter_matchers/has_entry.rb, lib/mocha/parameter_matchers/has_value.rb, lib/mocha/parameter_matchers/optionally.rb, lib/mocha/parameter_matchers/has_entries.rb, lib/mocha/parameter_matchers/instance_of.rb, lib/mocha/parameter_matchers/responds_with.rb, lib/mocha/parameter_matchers/any_parameters.rb, lib/mocha/parameter_matchers/equivalent_uri.rb, lib/mocha/parameter_matchers/regexp_matches.rb, lib/mocha/parameter_matchers/yaml_equivalent.rb
+ lib/mocha/parameter_matchers/not.rb, lib/mocha/parameter_matchers/base.rb, lib/mocha/parameter_matchers/is_a.rb, lib/mocha/parameter_matchers/all_of.rb, lib/mocha/parameter_matchers/any_of.rb, lib/mocha/parameter_matchers/equals.rb, lib/mocha/parameter_matchers/has_key.rb, lib/mocha/parameter_matchers/kind_of.rb, lib/mocha/parameter_matchers/anything.rb, lib/mocha/parameter_matchers/includes.rb, lib/mocha/parameter_matchers/has_entry.rb, lib/mocha/parameter_matchers/has_value.rb, lib/mocha/parameter_matchers/optionally.rb, lib/mocha/parameter_matchers/has_entries.rb, lib/mocha/parameter_matchers/instance_of.rb, lib/mocha/parameter_matchers/responds_with.rb, lib/mocha/parameter_matchers/any_parameters.rb, lib/mocha/parameter_matchers/equivalent_uri.rb, lib/mocha/parameter_matchers/regexp_matches.rb, lib/mocha/parameter_matchers/yaml_equivalent.rb, lib/mocha/parameter_matchers/instance_methods.rb
@@ -93,8 +93,7 @@
Overview
- Used as parameters for Expectation#with to restrict the parameter values
-which will match the expectation. Can be nested.
+ Used as parameters for Expectation#with to restrict the parameter values which will match the expectation. Can be nested.
@@ -265,8 +264,7 @@
- Matches a URI without regard to the ordering of parameters in the query
-string.
+ Matches a URI without regard to the ordering of parameters in the query string.
@@ -314,32 +312,7 @@
- Matches Hash containing entry with key and
-value .
-
-
-
-
-
-
-
-
- #has_equivalent_query_string(uri) ⇒ Object
-
-
-
-
-
-
-
-
-
- deprecated
-
-
-
- Deprecated.
- Use #equivalent_uri instead.
+ Matches Hash containing entry with key and value .
@@ -411,8 +384,7 @@
- Matches any object that responds with true to include?(item)
-for all items.
+ Matches any object that responds with true to include?(item) for all items.
@@ -580,8 +552,7 @@
- Matches any object that responds to message with
-result .
+ Matches any object that responds to message with result .
@@ -668,7 +639,7 @@
- parameter_matchers
+ matchers
(*Array<Base>)
@@ -789,7 +760,7 @@
- parameter_matchers
+ matchers
(*Array<Base>)
@@ -864,8 +835,7 @@
- Matches any parameters. This is used as the default for a newly built
-expectation.
+ Matches any parameters. This is used as the default for a newly built expectation.
@@ -1147,8 +1117,7 @@
- Matches a URI without regard to the ordering of parameters in the query
-string.
+ Matches a URI without regard to the ordering of parameters in the query string.
@@ -1376,8 +1345,7 @@
- Matches Hash containing entry with key and
-value .
+ Matches Hash containing entry with key and value .
rubocop:disable Naming/PredicateName
@@ -1401,8 +1369,7 @@
- Actual parameter contains expected entry supplied as Hash
-entry.
+ Actual parameter contains expected entry supplied as Hash entry.
object = mock()
@@ -1422,8 +1389,7 @@
- Actual parameter does not contain expected entry supplied as
-Hash entry.
+ Actual parameter does not contain expected entry supplied as Hash entry.
@@ -1628,54 +1594,6 @@
|
-