rspec-mocks 3.0.0.beta2 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +104 -36
- data/README.md +35 -4
- data/lib/rspec/mocks.rb +52 -13
- data/lib/rspec/mocks/any_instance.rb +10 -0
- data/lib/rspec/mocks/any_instance/chain.rb +17 -0
- data/lib/rspec/mocks/any_instance/expect_chain_chain.rb +1 -1
- data/lib/rspec/mocks/any_instance/expectation_chain.rb +9 -6
- data/lib/rspec/mocks/any_instance/message_chains.rb +10 -1
- data/lib/rspec/mocks/any_instance/proxy.rb +112 -0
- data/lib/rspec/mocks/any_instance/recorder.rb +49 -18
- data/lib/rspec/mocks/any_instance/stub_chain.rb +5 -3
- data/lib/rspec/mocks/any_instance/stub_chain_chain.rb +1 -1
- data/lib/rspec/mocks/argument_list_matcher.rb +5 -3
- data/lib/rspec/mocks/argument_matchers.rb +28 -12
- data/lib/rspec/mocks/configuration.rb +29 -0
- data/lib/rspec/mocks/error_generator.rb +2 -5
- data/lib/rspec/mocks/example_methods.rb +122 -13
- data/lib/rspec/mocks/instance_method_stasher.rb +26 -2
- data/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/lib/rspec/mocks/matchers/receive.rb +6 -20
- data/lib/rspec/mocks/matchers/receive_message_chain.rb +7 -5
- data/lib/rspec/mocks/matchers/receive_messages.rb +1 -2
- data/lib/rspec/mocks/message_chain.rb +9 -9
- data/lib/rspec/mocks/message_expectation.rb +6 -5
- data/lib/rspec/mocks/method_double.rb +67 -10
- data/lib/rspec/mocks/method_reference.rb +1 -1
- data/lib/rspec/mocks/mutate_const.rb +10 -14
- data/lib/rspec/mocks/object_reference.rb +7 -4
- data/lib/rspec/mocks/proxy.rb +95 -8
- data/lib/rspec/mocks/space.rb +58 -9
- data/lib/rspec/mocks/syntax.rb +128 -210
- data/lib/rspec/mocks/targets.rb +6 -8
- data/lib/rspec/mocks/test_double.rb +16 -25
- data/lib/rspec/mocks/verifying_double.rb +15 -12
- data/lib/rspec/mocks/verifying_message_expecation.rb +3 -3
- data/lib/rspec/mocks/verifying_proxy.rb +23 -17
- data/lib/rspec/mocks/version.rb +3 -1
- metadata +29 -257
- metadata.gz.sig +0 -0
- data/features/README.md +0 -75
- data/features/Scope.md +0 -17
- data/features/Upgrade.md +0 -22
- data/features/argument_matchers/README.md +0 -27
- data/features/argument_matchers/explicit.feature +0 -59
- data/features/argument_matchers/general_matchers.feature +0 -85
- data/features/argument_matchers/type_matchers.feature +0 -26
- data/features/message_expectations/README.md +0 -75
- data/features/message_expectations/allow_any_instance_of.feature +0 -26
- data/features/message_expectations/any_instance.feature +0 -43
- data/features/message_expectations/block_local_expectations.feature.pending +0 -55
- data/features/message_expectations/call_original.feature +0 -23
- data/features/message_expectations/expect_message_using_expect.feature +0 -107
- data/features/message_expectations/expect_message_using_should_receive.feature +0 -118
- data/features/message_expectations/message_chains_using_expect.feature +0 -49
- data/features/message_expectations/receive_counts.feature +0 -209
- data/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +0 -50
- data/features/method_stubs/README.md +0 -77
- data/features/method_stubs/allow_any_instance_of.feature +0 -136
- data/features/method_stubs/as_null_object.feature +0 -40
- data/features/method_stubs/receive_message_chain.feature +0 -51
- data/features/method_stubs/simple_return_value_with_allow.feature +0 -44
- data/features/method_stubs/simple_return_value_with_stub.feature +0 -64
- data/features/method_stubs/stub_implementation.feature +0 -48
- data/features/method_stubs/to_ary.feature +0 -51
- data/features/mutating_constants/README.md +0 -82
- data/features/mutating_constants/hiding_defined_constant.feature +0 -64
- data/features/mutating_constants/stub_defined_constant.feature +0 -78
- data/features/mutating_constants/stub_undefined_constant.feature +0 -50
- data/features/outside_rspec/standalone.feature +0 -33
- data/features/spies/spy_partial_mock_method.feature +0 -34
- data/features/spies/spy_pure_mock_method.feature +0 -76
- data/features/spies/spy_unstubbed_method.feature +0 -18
- data/features/step_definitions/additional_cli_steps.rb +0 -11
- data/features/support/env.rb +0 -22
- data/features/support/rubinius.rb +0 -6
- data/features/test_frameworks/test_unit.feature +0 -54
- data/features/verifying_doubles/README.md +0 -17
- data/features/verifying_doubles/class_doubles.feature +0 -73
- data/features/verifying_doubles/dynamic_classes.feature +0 -71
- data/features/verifying_doubles/instance_doubles.feature +0 -103
- data/features/verifying_doubles/object_doubles.feature +0 -65
- data/features/verifying_doubles/partial_doubles.feature +0 -34
- data/lib/rspec/mocks/extensions/marshal.rb +0 -17
- data/lib/rspec/mocks/framework.rb +0 -35
- data/lib/rspec/mocks/method_signature_verifier.rb +0 -207
- data/lib/rspec/mocks/ruby_features.rb +0 -24
- data/spec/rspec/mocks/and_call_original_spec.rb +0 -268
- data/spec/rspec/mocks/and_return_spec.rb +0 -23
- data/spec/rspec/mocks/and_yield_spec.rb +0 -126
- data/spec/rspec/mocks/any_instance/message_chains_spec.rb +0 -41
- data/spec/rspec/mocks/any_instance_spec.rb +0 -1045
- data/spec/rspec/mocks/array_including_matcher_spec.rb +0 -41
- data/spec/rspec/mocks/at_least_spec.rb +0 -123
- data/spec/rspec/mocks/at_most_spec.rb +0 -90
- data/spec/rspec/mocks/before_all_spec.rb +0 -132
- data/spec/rspec/mocks/block_return_value_spec.rb +0 -70
- data/spec/rspec/mocks/combining_implementation_instructions_spec.rb +0 -204
- data/spec/rspec/mocks/configuration_spec.rb +0 -242
- data/spec/rspec/mocks/double_spec.rb +0 -874
- data/spec/rspec/mocks/example_methods_spec.rb +0 -13
- data/spec/rspec/mocks/extensions/marshal_spec.rb +0 -54
- data/spec/rspec/mocks/failing_argument_matchers_spec.rb +0 -184
- data/spec/rspec/mocks/hash_excluding_matcher_spec.rb +0 -67
- data/spec/rspec/mocks/hash_including_matcher_spec.rb +0 -94
- data/spec/rspec/mocks/instance_method_stasher_spec.rb +0 -74
- data/spec/rspec/mocks/matchers/have_received_spec.rb +0 -347
- data/spec/rspec/mocks/matchers/receive_message_chain_spec.rb +0 -198
- data/spec/rspec/mocks/matchers/receive_messages_spec.rb +0 -140
- data/spec/rspec/mocks/matchers/receive_spec.rb +0 -418
- data/spec/rspec/mocks/method_signature_verifier_spec.rb +0 -272
- data/spec/rspec/mocks/methods_spec.rb +0 -26
- data/spec/rspec/mocks/mock_expectation_error_spec.rb +0 -22
- data/spec/rspec/mocks/mock_ordering_spec.rb +0 -114
- data/spec/rspec/mocks/multiple_return_value_spec.rb +0 -132
- data/spec/rspec/mocks/mutate_const_spec.rb +0 -542
- data/spec/rspec/mocks/nil_expectation_warning_spec.rb +0 -52
- data/spec/rspec/mocks/null_object_mock_spec.rb +0 -133
- data/spec/rspec/mocks/once_counts_spec.rb +0 -52
- data/spec/rspec/mocks/options_hash_spec.rb +0 -35
- data/spec/rspec/mocks/order_group_spec.rb +0 -27
- data/spec/rspec/mocks/partial_double_spec.rb +0 -308
- data/spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb +0 -95
- data/spec/rspec/mocks/passing_argument_matchers_spec.rb +0 -145
- data/spec/rspec/mocks/precise_counts_spec.rb +0 -68
- data/spec/rspec/mocks/record_messages_spec.rb +0 -26
- data/spec/rspec/mocks/serialization_spec.rb +0 -90
- data/spec/rspec/mocks/space_spec.rb +0 -244
- data/spec/rspec/mocks/stash_spec.rb +0 -46
- data/spec/rspec/mocks/stub_chain_spec.rb +0 -168
- data/spec/rspec/mocks/stub_implementation_spec.rb +0 -81
- data/spec/rspec/mocks/stub_spec.rb +0 -327
- data/spec/rspec/mocks/stubbed_message_expectations_spec.rb +0 -58
- data/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb +0 -101
- data/spec/rspec/mocks/syntax_spec.rb +0 -19
- data/spec/rspec/mocks/test_double_spec.rb +0 -49
- data/spec/rspec/mocks/to_ary_spec.rb +0 -54
- data/spec/rspec/mocks/twice_counts_spec.rb +0 -66
- data/spec/rspec/mocks/verifying_double_spec.rb +0 -590
- data/spec/rspec/mocks/verifying_message_expecation_spec.rb +0 -69
- data/spec/rspec/mocks_spec.rb +0 -192
- data/spec/spec_helper.rb +0 -121
data/lib/rspec/mocks/targets.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
module RSpec
|
2
2
|
module Mocks
|
3
|
+
# @private
|
3
4
|
class TargetBase
|
4
5
|
def initialize(target)
|
5
6
|
@target = target
|
@@ -37,16 +38,9 @@ module RSpec
|
|
37
38
|
private
|
38
39
|
|
39
40
|
def matcher_allowed?(matcher)
|
40
|
-
|
41
|
+
matcher.class.name.start_with?("RSpec::Mocks::Matchers".freeze)
|
41
42
|
end
|
42
43
|
|
43
|
-
#@api private
|
44
|
-
ALLOWED_MATCHERS = [
|
45
|
-
Matchers::Receive,
|
46
|
-
Matchers::ReceiveMessages,
|
47
|
-
Matchers::ReceiveMessageChain,
|
48
|
-
]
|
49
|
-
|
50
44
|
def define_matcher(matcher, name, &block)
|
51
45
|
matcher.__send__(name, @target, &block)
|
52
46
|
end
|
@@ -68,6 +62,7 @@ module RSpec
|
|
68
62
|
end
|
69
63
|
end
|
70
64
|
|
65
|
+
# @private
|
71
66
|
class AllowanceTarget < TargetBase
|
72
67
|
EXPRESSION = :allow
|
73
68
|
delegate_to :setup_allowance
|
@@ -75,6 +70,7 @@ module RSpec
|
|
75
70
|
disallow_negation :to_not
|
76
71
|
end
|
77
72
|
|
73
|
+
# @private
|
78
74
|
class ExpectationTarget < TargetBase
|
79
75
|
EXPRESSION = :expect
|
80
76
|
delegate_to :setup_expectation
|
@@ -82,6 +78,7 @@ module RSpec
|
|
82
78
|
delegate_not_to :setup_negative_expectation, :from => :to_not
|
83
79
|
end
|
84
80
|
|
81
|
+
# @private
|
85
82
|
class AnyInstanceAllowanceTarget < TargetBase
|
86
83
|
EXPRESSION = :allow_any_instance_of
|
87
84
|
delegate_to :setup_any_instance_allowance
|
@@ -89,6 +86,7 @@ module RSpec
|
|
89
86
|
disallow_negation :to_not
|
90
87
|
end
|
91
88
|
|
89
|
+
# @private
|
92
90
|
class AnyInstanceExpectationTarget < TargetBase
|
93
91
|
EXPRESSION = :expect_any_instance_of
|
94
92
|
delegate_to :setup_any_instance_expectation
|
@@ -4,23 +4,17 @@ module RSpec
|
|
4
4
|
# includes this module, and it is provided for cases where you want a
|
5
5
|
# pure test double without subclassing RSpec::Mocks::Double.
|
6
6
|
module TestDouble
|
7
|
-
# Extends the TestDouble module onto the given object and
|
8
|
-
# initializes it as a test double.
|
9
|
-
#
|
10
|
-
# @example
|
11
|
-
#
|
12
|
-
# module = Module.new
|
13
|
-
# RSpec::Mocks::TestDouble.extend_onto(module, "MyMixin", :foo => "bar")
|
14
|
-
# module.foo #=> "bar"
|
15
|
-
def self.extend_onto(object, name=nil, stubs={})
|
16
|
-
object.extend self
|
17
|
-
object.send(:__initialize_as_test_double, name, stubs)
|
18
|
-
end
|
19
|
-
|
20
7
|
# Creates a new test double with a `name` (that will be used in error
|
21
8
|
# messages only)
|
22
9
|
def initialize(name=nil, stubs={})
|
23
|
-
|
10
|
+
@__expired = false
|
11
|
+
if Hash === name && stubs.empty?
|
12
|
+
stubs = name
|
13
|
+
@name = nil
|
14
|
+
else
|
15
|
+
@name = name
|
16
|
+
end
|
17
|
+
assign_stubs(stubs)
|
24
18
|
end
|
25
19
|
|
26
20
|
# Tells the object to respond to all messages. If specific stub values
|
@@ -63,23 +57,19 @@ module RSpec
|
|
63
57
|
__raise_expired_error or TestDoubleProxy.new(self, order_group, @name)
|
64
58
|
end
|
65
59
|
|
60
|
+
# @private
|
66
61
|
def __disallow_further_usage!
|
67
62
|
@__expired = true
|
68
63
|
end
|
69
64
|
|
70
|
-
|
71
|
-
|
72
|
-
def
|
73
|
-
|
74
|
-
if Hash === name && stubs.empty?
|
75
|
-
stubs = name
|
76
|
-
@name = nil
|
77
|
-
else
|
78
|
-
@name = name
|
79
|
-
end
|
80
|
-
assign_stubs(stubs)
|
65
|
+
# Override for default freeze implementation to prevent freezing of test
|
66
|
+
# doubles.
|
67
|
+
def freeze
|
68
|
+
RSpec.warn_with("WARNING: you attempted to freeze a test double. This is explicitly a no-op as freezing doubles can lead to undesired behaviour when resetting tests.")
|
81
69
|
end
|
82
70
|
|
71
|
+
private
|
72
|
+
|
83
73
|
def method_missing(message, *args, &block)
|
84
74
|
proxy = __mock_proxy
|
85
75
|
proxy.record_message_received(message, *args, &block)
|
@@ -88,6 +78,7 @@ module RSpec
|
|
88
78
|
case message
|
89
79
|
when :to_int then return 0
|
90
80
|
when :to_a, :to_ary then return nil
|
81
|
+
when :to_str then return to_s
|
91
82
|
else return self
|
92
83
|
end
|
93
84
|
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
RSpec::Support.require_rspec_mocks 'verifying_proxy'
|
2
2
|
require 'stringio'
|
3
3
|
|
4
4
|
module RSpec
|
5
5
|
module Mocks
|
6
6
|
|
7
|
-
# @
|
7
|
+
# @private
|
8
8
|
module VerifyingDouble
|
9
9
|
def respond_to?(message, include_private=false)
|
10
10
|
return super unless null_object?
|
@@ -48,7 +48,7 @@ module RSpec
|
|
48
48
|
__send__(name, *args, &block)
|
49
49
|
end
|
50
50
|
|
51
|
-
def
|
51
|
+
def initialize(*args)
|
52
52
|
super
|
53
53
|
@__sending_message = nil
|
54
54
|
end
|
@@ -57,7 +57,8 @@ module RSpec
|
|
57
57
|
# A mock providing a custom proxy that can verify the validity of any
|
58
58
|
# method stubs or expectations against the public instance methods of the
|
59
59
|
# given class.
|
60
|
-
#
|
60
|
+
#
|
61
|
+
# @private
|
61
62
|
class InstanceVerifyingDouble
|
62
63
|
include TestDouble
|
63
64
|
include VerifyingDouble
|
@@ -65,14 +66,14 @@ module RSpec
|
|
65
66
|
def initialize(doubled_module, *args)
|
66
67
|
@doubled_module = doubled_module
|
67
68
|
|
68
|
-
|
69
|
+
super(
|
69
70
|
"#{doubled_module.description} (instance)",
|
70
71
|
*args
|
71
72
|
)
|
72
73
|
end
|
73
74
|
|
74
75
|
def __build_mock_proxy(order_group)
|
75
|
-
VerifyingProxy.new(self, order_group,
|
76
|
+
VerifyingProxy.new(self, order_group, @name,
|
76
77
|
@doubled_module,
|
77
78
|
InstanceMethodReference
|
78
79
|
)
|
@@ -81,19 +82,19 @@ module RSpec
|
|
81
82
|
|
82
83
|
# An awkward module necessary because we cannot otherwise have
|
83
84
|
# ClassVerifyingDouble inherit from Module and still share these methods.
|
84
|
-
#
|
85
|
+
#
|
86
|
+
# @private
|
85
87
|
module ObjectVerifyingDoubleMethods
|
86
88
|
include TestDouble
|
87
89
|
include VerifyingDouble
|
88
90
|
|
89
91
|
def initialize(doubled_module, *args)
|
90
92
|
@doubled_module = doubled_module
|
91
|
-
|
92
|
-
__initialize_as_test_double(doubled_module.description, *args)
|
93
|
+
super(doubled_module.description, *args)
|
93
94
|
end
|
94
95
|
|
95
96
|
def __build_mock_proxy(order_group)
|
96
|
-
VerifyingProxy.new(self, order_group,
|
97
|
+
VerifyingProxy.new(self, order_group, @name,
|
97
98
|
@doubled_module,
|
98
99
|
ObjectMethodReference
|
99
100
|
)
|
@@ -107,7 +108,8 @@ module RSpec
|
|
107
108
|
|
108
109
|
# Similar to an InstanceVerifyingDouble, except that it verifies against
|
109
110
|
# public methods of the given object.
|
110
|
-
#
|
111
|
+
#
|
112
|
+
# @private
|
111
113
|
class ObjectVerifyingDouble
|
112
114
|
include ObjectVerifyingDoubleMethods
|
113
115
|
end
|
@@ -115,7 +117,8 @@ module RSpec
|
|
115
117
|
# Effectively the same as an ObjectVerifyingDouble (since a class is a type
|
116
118
|
# of object), except with Module in the inheritance chain so that
|
117
119
|
# transferring nested constants to work.
|
118
|
-
#
|
120
|
+
#
|
121
|
+
# @private
|
119
122
|
class ClassVerifyingDouble < Module
|
120
123
|
include ObjectVerifyingDoubleMethods
|
121
124
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
RSpec::Support.require_rspec_support 'method_signature_verifier'
|
2
2
|
|
3
3
|
module RSpec
|
4
4
|
module Mocks
|
@@ -23,7 +23,7 @@ module RSpec
|
|
23
23
|
super
|
24
24
|
end
|
25
25
|
|
26
|
-
# @
|
26
|
+
# @private
|
27
27
|
def with(*args, &block)
|
28
28
|
unless ArgumentMatchers::AnyArgsMatcher === args.first
|
29
29
|
expected_args = if ArgumentMatchers::NoArgsMatcher === args.first
|
@@ -46,7 +46,7 @@ module RSpec
|
|
46
46
|
return if method_reference.nil?
|
47
47
|
|
48
48
|
method_reference.with_signature do |signature|
|
49
|
-
verifier = MethodSignatureVerifier.new(signature, actual_args)
|
49
|
+
verifier = Support::MethodSignatureVerifier.new(signature, actual_args)
|
50
50
|
unless verifier.valid?
|
51
51
|
# Fail fast is required, otherwise the message expecation will fail
|
52
52
|
# as well ("expected method not called") and clobber this one.
|
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
RSpec::Support.require_rspec_mocks 'verifying_message_expecation'
|
2
|
+
RSpec::Support.require_rspec_mocks 'method_reference'
|
3
3
|
|
4
4
|
module RSpec
|
5
5
|
module Mocks
|
6
6
|
|
7
|
-
# @
|
7
|
+
# @private
|
8
8
|
module VerifyingProxyMethods
|
9
|
-
def add_stub(
|
9
|
+
def add_stub(method_name, opts={}, &implementation)
|
10
10
|
ensure_implemented(method_name)
|
11
11
|
super
|
12
12
|
end
|
@@ -16,7 +16,7 @@ module RSpec
|
|
16
16
|
super
|
17
17
|
end
|
18
18
|
|
19
|
-
def add_message_expectation(
|
19
|
+
def add_message_expectation(method_name, opts={}, &block)
|
20
20
|
ensure_implemented(method_name)
|
21
21
|
super
|
22
22
|
end
|
@@ -53,14 +53,14 @@ module RSpec
|
|
53
53
|
# loaded, otherwise they are disabled. This allows for testing in
|
54
54
|
# isolation.
|
55
55
|
#
|
56
|
-
# @
|
56
|
+
# @private
|
57
57
|
class VerifyingProxy < Proxy
|
58
58
|
include VerifyingProxyMethods
|
59
59
|
|
60
|
-
def initialize(object, order_group, name, method_reference_class)
|
61
|
-
super(object, order_group)
|
60
|
+
def initialize(object, order_group, name, doubled_module, method_reference_class)
|
61
|
+
super(object, order_group, name)
|
62
62
|
@object = object
|
63
|
-
@doubled_module =
|
63
|
+
@doubled_module = doubled_module
|
64
64
|
@method_reference_class = method_reference_class
|
65
65
|
|
66
66
|
# A custom method double is required to pass through a way to lookup
|
@@ -82,7 +82,7 @@ module RSpec
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
# @
|
85
|
+
# @private
|
86
86
|
class VerifyingPartialDoubleProxy < PartialDoubleProxy
|
87
87
|
include VerifyingProxyMethods
|
88
88
|
|
@@ -102,7 +102,12 @@ module RSpec
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
# @
|
105
|
+
# @private
|
106
|
+
class VerifyingPartialClassDoubleProxy < VerifyingPartialDoubleProxy
|
107
|
+
include PartialClassDoubleProxyMethods
|
108
|
+
end
|
109
|
+
|
110
|
+
# @private
|
106
111
|
class VerifyingMethodDouble < MethodDouble
|
107
112
|
def initialize(object, method_name, proxy, method_reference)
|
108
113
|
super(object, method_name, proxy)
|
@@ -113,8 +118,9 @@ module RSpec
|
|
113
118
|
VerifyingMessageExpectation
|
114
119
|
end
|
115
120
|
|
116
|
-
def add_expectation(*
|
117
|
-
|
121
|
+
def add_expectation(*args, &block)
|
122
|
+
# explict params necessary for 1.8.7 see #626
|
123
|
+
super(*args, &block).tap { |x| x.method_reference = @method_reference }
|
118
124
|
end
|
119
125
|
|
120
126
|
def proxy_method_invoked(obj, *args, &block)
|
@@ -126,7 +132,7 @@ module RSpec
|
|
126
132
|
|
127
133
|
def validate_arguments!(actual_args)
|
128
134
|
@method_reference.with_signature do |signature|
|
129
|
-
verifier = MethodSignatureVerifier.new(signature, actual_args)
|
135
|
+
verifier = Support::MethodSignatureVerifier.new(signature, actual_args)
|
130
136
|
unless verifier.valid?
|
131
137
|
raise ArgumentError, verifier.error_message
|
132
138
|
end
|
@@ -140,12 +146,12 @@ module RSpec
|
|
140
146
|
# collapse the reference and the method double into a single object so that
|
141
147
|
# we can access the original pristine method definition.
|
142
148
|
#
|
143
|
-
# @
|
149
|
+
# @private
|
144
150
|
class VerifyingExistingMethodDouble < VerifyingMethodDouble
|
145
151
|
def initialize(object, method_name, proxy)
|
146
152
|
super(object, method_name, proxy, self)
|
147
153
|
|
148
|
-
@valid_method = object.respond_to?(method_name)
|
154
|
+
@valid_method = object.respond_to?(method_name, true)
|
149
155
|
|
150
156
|
# Trigger an eager find of the original method since if we find it any
|
151
157
|
# later we end up getting a stubbed method with incorrect arity.
|
@@ -153,7 +159,7 @@ module RSpec
|
|
153
159
|
end
|
154
160
|
|
155
161
|
def with_signature
|
156
|
-
yield MethodSignature.new(original_method)
|
162
|
+
yield Support::MethodSignature.new(original_method)
|
157
163
|
end
|
158
164
|
|
159
165
|
def unimplemented?
|
data/lib/rspec/mocks/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-mocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 3.0.0.rc1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Steven Baker
|
@@ -11,115 +10,85 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain:
|
14
|
-
-
|
15
|
-
|
13
|
+
- |
|
14
|
+
-----BEGIN CERTIFICATE-----
|
16
15
|
MIIDjjCCAnagAwIBAgIBATANBgkqhkiG9w0BAQUFADBGMRIwEAYDVQQDDAlyc3Bl
|
17
|
-
|
18
16
|
Yy1kZXYxGzAZBgoJkiaJk/IsZAEZFgtnb29nbGVnb3VwczETMBEGCgmSJomT8ixk
|
19
|
-
|
20
17
|
ARkWA2NvbTAeFw0xMzExMDcxOTQyNTlaFw0xNDExMDcxOTQyNTlaMEYxEjAQBgNV
|
21
|
-
|
22
18
|
BAMMCXJzcGVjLWRldjEbMBkGCgmSJomT8ixkARkWC2dvb2dsZWdvdXBzMRMwEQYK
|
23
|
-
|
24
19
|
CZImiZPyLGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
|
25
|
-
|
26
20
|
nhCeZouDLXWO55no+EdZNCtjXjfJQ1X9TbPcvBDD29OypIUce2h/VdKXB2gI7ZHs
|
27
|
-
|
28
21
|
F5NkPggslTErGFmWAtIiur7u943RVqHOsyoIsy065F9fCtrykkA+22elvTDha4Iz
|
29
|
-
|
30
22
|
RUCvuhQ3klatYk4jF+cGt1jNONNVdLOiy0bMynvcM7hoVQ2AomwGs+cEOWQ/4dkD
|
31
|
-
|
32
23
|
JcNV3qfzF5QBcTD2372XNM53b25nYVQSX2KH5FF7BhlKyov33bOm2gA9M+mWIujW
|
33
|
-
|
34
24
|
qgkyxVlfrlE+ZBgV3wXn1Cojg1LpTq35yOArgwioyrwwlZZJR9joN9s/nDklfr5A
|
35
|
-
|
36
25
|
+dyETjFc6cmEPWZrt2cJBQIDAQABo4GGMIGDMAkGA1UdEwQCMAAwCwYDVR0PBAQD
|
37
|
-
|
38
26
|
AgSwMB0GA1UdDgQWBBSW+WD7hn1swJ1A7i8tbuFeuNCJCjAkBgNVHREEHTAbgRly
|
39
|
-
|
40
27
|
c3BlYy1kZXZAZ29vZ2xlZ291cHMuY29tMCQGA1UdEgQdMBuBGXJzcGVjLWRldkBn
|
41
|
-
|
42
28
|
b29nbGVnb3Vwcy5jb20wDQYJKoZIhvcNAQEFBQADggEBAH27jAZ8sD7vnXupj6Y+
|
43
|
-
|
44
29
|
BaBdfHtCkFaslLJ0aKuMDIVXwYuKfqoW15cZPDLmSIEBuQFM3lw6d/hEEL4Uo2jZ
|
45
|
-
|
46
30
|
FvtmH5OxifPDzFyUtCL4yp6qgNe/Xf6sDsRg6FmKcpgqCwNOmsViaf0LPSUH/GYQ
|
47
|
-
|
48
31
|
3Teoz8QCaDbD7AKsffT7eDrnbHnKweO1XdemRJC98u/yYxnGzMSWKEsn09etBlZ9
|
49
|
-
|
50
32
|
7H67k5Z3uf6cfLZgToWL6zShzZY3Nun5r73YsNf2/QZOe4UZe4vfGvn6baw53ys9
|
51
|
-
|
52
33
|
1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
|
53
|
-
|
54
34
|
muA=
|
55
|
-
|
56
35
|
-----END CERTIFICATE-----
|
57
|
-
|
58
|
-
'
|
59
|
-
date: 2014-02-18 00:00:00.000000000 Z
|
36
|
+
date: 2014-05-18 00:00:00.000000000 Z
|
60
37
|
dependencies:
|
61
38
|
- !ruby/object:Gem::Dependency
|
62
39
|
name: rspec-support
|
63
40
|
requirement: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
41
|
requirements:
|
66
42
|
- - '='
|
67
43
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.0.0.
|
44
|
+
version: 3.0.0.rc1
|
69
45
|
type: :runtime
|
70
46
|
prerelease: false
|
71
47
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
48
|
requirements:
|
74
49
|
- - '='
|
75
50
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3.0.0.
|
51
|
+
version: 3.0.0.rc1
|
77
52
|
- !ruby/object:Gem::Dependency
|
78
53
|
name: rake
|
79
54
|
requirement: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
55
|
requirements:
|
82
|
-
- - ~>
|
56
|
+
- - "~>"
|
83
57
|
- !ruby/object:Gem::Version
|
84
58
|
version: 10.0.0
|
85
59
|
type: :development
|
86
60
|
prerelease: false
|
87
61
|
version_requirements: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
62
|
requirements:
|
90
|
-
- - ~>
|
63
|
+
- - "~>"
|
91
64
|
- !ruby/object:Gem::Version
|
92
65
|
version: 10.0.0
|
93
66
|
- !ruby/object:Gem::Dependency
|
94
67
|
name: cucumber
|
95
68
|
requirement: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
69
|
requirements:
|
98
|
-
- - ~>
|
70
|
+
- - "~>"
|
99
71
|
- !ruby/object:Gem::Version
|
100
72
|
version: 1.1.9
|
101
73
|
type: :development
|
102
74
|
prerelease: false
|
103
75
|
version_requirements: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
76
|
requirements:
|
106
|
-
- - ~>
|
77
|
+
- - "~>"
|
107
78
|
- !ruby/object:Gem::Version
|
108
79
|
version: 1.1.9
|
109
80
|
- !ruby/object:Gem::Dependency
|
110
81
|
name: aruba
|
111
82
|
requirement: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
83
|
requirements:
|
114
|
-
- - ~>
|
84
|
+
- - "~>"
|
115
85
|
- !ruby/object:Gem::Version
|
116
86
|
version: '0.5'
|
117
87
|
type: :development
|
118
88
|
prerelease: false
|
119
89
|
version_requirements: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
90
|
requirements:
|
122
|
-
- - ~>
|
91
|
+
- - "~>"
|
123
92
|
- !ruby/object:Gem::Version
|
124
93
|
version: '0.5'
|
125
94
|
description: RSpec's 'test double' framework, with support for stubbing and mocking
|
@@ -128,11 +97,18 @@ executables: []
|
|
128
97
|
extensions: []
|
129
98
|
extra_rdoc_files: []
|
130
99
|
files:
|
100
|
+
- ".document"
|
101
|
+
- ".yardopts"
|
102
|
+
- Changelog.md
|
103
|
+
- License.txt
|
104
|
+
- README.md
|
131
105
|
- lib/rspec/mocks.rb
|
106
|
+
- lib/rspec/mocks/any_instance.rb
|
132
107
|
- lib/rspec/mocks/any_instance/chain.rb
|
133
108
|
- lib/rspec/mocks/any_instance/expect_chain_chain.rb
|
134
109
|
- lib/rspec/mocks/any_instance/expectation_chain.rb
|
135
110
|
- lib/rspec/mocks/any_instance/message_chains.rb
|
111
|
+
- lib/rspec/mocks/any_instance/proxy.rb
|
136
112
|
- lib/rspec/mocks/any_instance/recorder.rb
|
137
113
|
- lib/rspec/mocks/any_instance/stub_chain.rb
|
138
114
|
- lib/rspec/mocks/any_instance/stub_chain_chain.rb
|
@@ -141,9 +117,9 @@ files:
|
|
141
117
|
- lib/rspec/mocks/configuration.rb
|
142
118
|
- lib/rspec/mocks/error_generator.rb
|
143
119
|
- lib/rspec/mocks/example_methods.rb
|
144
|
-
- lib/rspec/mocks/extensions/marshal.rb
|
145
|
-
- lib/rspec/mocks/framework.rb
|
146
120
|
- lib/rspec/mocks/instance_method_stasher.rb
|
121
|
+
- lib/rspec/mocks/marshal_extension.rb
|
122
|
+
- lib/rspec/mocks/matchers/expectation_customization.rb
|
147
123
|
- lib/rspec/mocks/matchers/have_received.rb
|
148
124
|
- lib/rspec/mocks/matchers/receive.rb
|
149
125
|
- lib/rspec/mocks/matchers/receive_message_chain.rb
|
@@ -152,12 +128,10 @@ files:
|
|
152
128
|
- lib/rspec/mocks/message_expectation.rb
|
153
129
|
- lib/rspec/mocks/method_double.rb
|
154
130
|
- lib/rspec/mocks/method_reference.rb
|
155
|
-
- lib/rspec/mocks/method_signature_verifier.rb
|
156
131
|
- lib/rspec/mocks/mutate_const.rb
|
157
132
|
- lib/rspec/mocks/object_reference.rb
|
158
133
|
- lib/rspec/mocks/order_group.rb
|
159
134
|
- lib/rspec/mocks/proxy.rb
|
160
|
-
- lib/rspec/mocks/ruby_features.rb
|
161
135
|
- lib/rspec/mocks/space.rb
|
162
136
|
- lib/rspec/mocks/standalone.rb
|
163
137
|
- lib/rspec/mocks/syntax.rb
|
@@ -167,232 +141,30 @@ files:
|
|
167
141
|
- lib/rspec/mocks/verifying_message_expecation.rb
|
168
142
|
- lib/rspec/mocks/verifying_proxy.rb
|
169
143
|
- lib/rspec/mocks/version.rb
|
170
|
-
- README.md
|
171
|
-
- License.txt
|
172
|
-
- Changelog.md
|
173
|
-
- .yardopts
|
174
|
-
- .document
|
175
|
-
- features/README.md
|
176
|
-
- features/Scope.md
|
177
|
-
- features/Upgrade.md
|
178
|
-
- features/argument_matchers/README.md
|
179
|
-
- features/argument_matchers/explicit.feature
|
180
|
-
- features/argument_matchers/general_matchers.feature
|
181
|
-
- features/argument_matchers/type_matchers.feature
|
182
|
-
- features/message_expectations/README.md
|
183
|
-
- features/message_expectations/allow_any_instance_of.feature
|
184
|
-
- features/message_expectations/any_instance.feature
|
185
|
-
- features/message_expectations/block_local_expectations.feature.pending
|
186
|
-
- features/message_expectations/call_original.feature
|
187
|
-
- features/message_expectations/expect_message_using_expect.feature
|
188
|
-
- features/message_expectations/expect_message_using_should_receive.feature
|
189
|
-
- features/message_expectations/message_chains_using_expect.feature
|
190
|
-
- features/message_expectations/receive_counts.feature
|
191
|
-
- features/message_expectations/warn_when_expectation_is_set_on_nil.feature
|
192
|
-
- features/method_stubs/README.md
|
193
|
-
- features/method_stubs/allow_any_instance_of.feature
|
194
|
-
- features/method_stubs/as_null_object.feature
|
195
|
-
- features/method_stubs/receive_message_chain.feature
|
196
|
-
- features/method_stubs/simple_return_value_with_allow.feature
|
197
|
-
- features/method_stubs/simple_return_value_with_stub.feature
|
198
|
-
- features/method_stubs/stub_implementation.feature
|
199
|
-
- features/method_stubs/to_ary.feature
|
200
|
-
- features/mutating_constants/README.md
|
201
|
-
- features/mutating_constants/hiding_defined_constant.feature
|
202
|
-
- features/mutating_constants/stub_defined_constant.feature
|
203
|
-
- features/mutating_constants/stub_undefined_constant.feature
|
204
|
-
- features/outside_rspec/standalone.feature
|
205
|
-
- features/spies/spy_partial_mock_method.feature
|
206
|
-
- features/spies/spy_pure_mock_method.feature
|
207
|
-
- features/spies/spy_unstubbed_method.feature
|
208
|
-
- features/step_definitions/additional_cli_steps.rb
|
209
|
-
- features/support/env.rb
|
210
|
-
- features/support/rubinius.rb
|
211
|
-
- features/test_frameworks/test_unit.feature
|
212
|
-
- features/verifying_doubles/README.md
|
213
|
-
- features/verifying_doubles/class_doubles.feature
|
214
|
-
- features/verifying_doubles/dynamic_classes.feature
|
215
|
-
- features/verifying_doubles/instance_doubles.feature
|
216
|
-
- features/verifying_doubles/object_doubles.feature
|
217
|
-
- features/verifying_doubles/partial_doubles.feature
|
218
|
-
- spec/rspec/mocks/and_call_original_spec.rb
|
219
|
-
- spec/rspec/mocks/and_return_spec.rb
|
220
|
-
- spec/rspec/mocks/and_yield_spec.rb
|
221
|
-
- spec/rspec/mocks/any_instance/message_chains_spec.rb
|
222
|
-
- spec/rspec/mocks/any_instance_spec.rb
|
223
|
-
- spec/rspec/mocks/array_including_matcher_spec.rb
|
224
|
-
- spec/rspec/mocks/at_least_spec.rb
|
225
|
-
- spec/rspec/mocks/at_most_spec.rb
|
226
|
-
- spec/rspec/mocks/before_all_spec.rb
|
227
|
-
- spec/rspec/mocks/block_return_value_spec.rb
|
228
|
-
- spec/rspec/mocks/combining_implementation_instructions_spec.rb
|
229
|
-
- spec/rspec/mocks/configuration_spec.rb
|
230
|
-
- spec/rspec/mocks/double_spec.rb
|
231
|
-
- spec/rspec/mocks/example_methods_spec.rb
|
232
|
-
- spec/rspec/mocks/extensions/marshal_spec.rb
|
233
|
-
- spec/rspec/mocks/failing_argument_matchers_spec.rb
|
234
|
-
- spec/rspec/mocks/hash_excluding_matcher_spec.rb
|
235
|
-
- spec/rspec/mocks/hash_including_matcher_spec.rb
|
236
|
-
- spec/rspec/mocks/instance_method_stasher_spec.rb
|
237
|
-
- spec/rspec/mocks/matchers/have_received_spec.rb
|
238
|
-
- spec/rspec/mocks/matchers/receive_message_chain_spec.rb
|
239
|
-
- spec/rspec/mocks/matchers/receive_messages_spec.rb
|
240
|
-
- spec/rspec/mocks/matchers/receive_spec.rb
|
241
|
-
- spec/rspec/mocks/method_signature_verifier_spec.rb
|
242
|
-
- spec/rspec/mocks/methods_spec.rb
|
243
|
-
- spec/rspec/mocks/mock_expectation_error_spec.rb
|
244
|
-
- spec/rspec/mocks/mock_ordering_spec.rb
|
245
|
-
- spec/rspec/mocks/multiple_return_value_spec.rb
|
246
|
-
- spec/rspec/mocks/mutate_const_spec.rb
|
247
|
-
- spec/rspec/mocks/nil_expectation_warning_spec.rb
|
248
|
-
- spec/rspec/mocks/null_object_mock_spec.rb
|
249
|
-
- spec/rspec/mocks/once_counts_spec.rb
|
250
|
-
- spec/rspec/mocks/options_hash_spec.rb
|
251
|
-
- spec/rspec/mocks/order_group_spec.rb
|
252
|
-
- spec/rspec/mocks/partial_double_spec.rb
|
253
|
-
- spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb
|
254
|
-
- spec/rspec/mocks/passing_argument_matchers_spec.rb
|
255
|
-
- spec/rspec/mocks/precise_counts_spec.rb
|
256
|
-
- spec/rspec/mocks/record_messages_spec.rb
|
257
|
-
- spec/rspec/mocks/serialization_spec.rb
|
258
|
-
- spec/rspec/mocks/space_spec.rb
|
259
|
-
- spec/rspec/mocks/stash_spec.rb
|
260
|
-
- spec/rspec/mocks/stub_chain_spec.rb
|
261
|
-
- spec/rspec/mocks/stub_implementation_spec.rb
|
262
|
-
- spec/rspec/mocks/stub_spec.rb
|
263
|
-
- spec/rspec/mocks/stubbed_message_expectations_spec.rb
|
264
|
-
- spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb
|
265
|
-
- spec/rspec/mocks/syntax_spec.rb
|
266
|
-
- spec/rspec/mocks/test_double_spec.rb
|
267
|
-
- spec/rspec/mocks/to_ary_spec.rb
|
268
|
-
- spec/rspec/mocks/twice_counts_spec.rb
|
269
|
-
- spec/rspec/mocks/verifying_double_spec.rb
|
270
|
-
- spec/rspec/mocks/verifying_message_expecation_spec.rb
|
271
|
-
- spec/rspec/mocks_spec.rb
|
272
|
-
- spec/spec_helper.rb
|
273
144
|
homepage: http://github.com/rspec/rspec-mocks
|
274
145
|
licenses:
|
275
146
|
- MIT
|
147
|
+
metadata: {}
|
276
148
|
post_install_message:
|
277
149
|
rdoc_options:
|
278
|
-
- --charset=UTF-8
|
150
|
+
- "--charset=UTF-8"
|
279
151
|
require_paths:
|
280
152
|
- lib
|
281
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
282
|
-
none: false
|
283
154
|
requirements:
|
284
|
-
- -
|
155
|
+
- - ">="
|
285
156
|
- !ruby/object:Gem::Version
|
286
157
|
version: 1.8.7
|
287
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
288
|
-
none: false
|
289
159
|
requirements:
|
290
|
-
- -
|
160
|
+
- - ">"
|
291
161
|
- !ruby/object:Gem::Version
|
292
162
|
version: 1.3.1
|
293
163
|
requirements: []
|
294
164
|
rubyforge_project: rspec
|
295
|
-
rubygems_version:
|
165
|
+
rubygems_version: 2.2.2
|
296
166
|
signing_key:
|
297
|
-
specification_version:
|
298
|
-
summary: rspec-mocks-3.0.0.
|
299
|
-
test_files:
|
300
|
-
- features/README.md
|
301
|
-
- features/Scope.md
|
302
|
-
- features/Upgrade.md
|
303
|
-
- features/argument_matchers/README.md
|
304
|
-
- features/argument_matchers/explicit.feature
|
305
|
-
- features/argument_matchers/general_matchers.feature
|
306
|
-
- features/argument_matchers/type_matchers.feature
|
307
|
-
- features/message_expectations/README.md
|
308
|
-
- features/message_expectations/allow_any_instance_of.feature
|
309
|
-
- features/message_expectations/any_instance.feature
|
310
|
-
- features/message_expectations/block_local_expectations.feature.pending
|
311
|
-
- features/message_expectations/call_original.feature
|
312
|
-
- features/message_expectations/expect_message_using_expect.feature
|
313
|
-
- features/message_expectations/expect_message_using_should_receive.feature
|
314
|
-
- features/message_expectations/message_chains_using_expect.feature
|
315
|
-
- features/message_expectations/receive_counts.feature
|
316
|
-
- features/message_expectations/warn_when_expectation_is_set_on_nil.feature
|
317
|
-
- features/method_stubs/README.md
|
318
|
-
- features/method_stubs/allow_any_instance_of.feature
|
319
|
-
- features/method_stubs/as_null_object.feature
|
320
|
-
- features/method_stubs/receive_message_chain.feature
|
321
|
-
- features/method_stubs/simple_return_value_with_allow.feature
|
322
|
-
- features/method_stubs/simple_return_value_with_stub.feature
|
323
|
-
- features/method_stubs/stub_implementation.feature
|
324
|
-
- features/method_stubs/to_ary.feature
|
325
|
-
- features/mutating_constants/README.md
|
326
|
-
- features/mutating_constants/hiding_defined_constant.feature
|
327
|
-
- features/mutating_constants/stub_defined_constant.feature
|
328
|
-
- features/mutating_constants/stub_undefined_constant.feature
|
329
|
-
- features/outside_rspec/standalone.feature
|
330
|
-
- features/spies/spy_partial_mock_method.feature
|
331
|
-
- features/spies/spy_pure_mock_method.feature
|
332
|
-
- features/spies/spy_unstubbed_method.feature
|
333
|
-
- features/step_definitions/additional_cli_steps.rb
|
334
|
-
- features/support/env.rb
|
335
|
-
- features/support/rubinius.rb
|
336
|
-
- features/test_frameworks/test_unit.feature
|
337
|
-
- features/verifying_doubles/README.md
|
338
|
-
- features/verifying_doubles/class_doubles.feature
|
339
|
-
- features/verifying_doubles/dynamic_classes.feature
|
340
|
-
- features/verifying_doubles/instance_doubles.feature
|
341
|
-
- features/verifying_doubles/object_doubles.feature
|
342
|
-
- features/verifying_doubles/partial_doubles.feature
|
343
|
-
- spec/rspec/mocks/and_call_original_spec.rb
|
344
|
-
- spec/rspec/mocks/and_return_spec.rb
|
345
|
-
- spec/rspec/mocks/and_yield_spec.rb
|
346
|
-
- spec/rspec/mocks/any_instance/message_chains_spec.rb
|
347
|
-
- spec/rspec/mocks/any_instance_spec.rb
|
348
|
-
- spec/rspec/mocks/array_including_matcher_spec.rb
|
349
|
-
- spec/rspec/mocks/at_least_spec.rb
|
350
|
-
- spec/rspec/mocks/at_most_spec.rb
|
351
|
-
- spec/rspec/mocks/before_all_spec.rb
|
352
|
-
- spec/rspec/mocks/block_return_value_spec.rb
|
353
|
-
- spec/rspec/mocks/combining_implementation_instructions_spec.rb
|
354
|
-
- spec/rspec/mocks/configuration_spec.rb
|
355
|
-
- spec/rspec/mocks/double_spec.rb
|
356
|
-
- spec/rspec/mocks/example_methods_spec.rb
|
357
|
-
- spec/rspec/mocks/extensions/marshal_spec.rb
|
358
|
-
- spec/rspec/mocks/failing_argument_matchers_spec.rb
|
359
|
-
- spec/rspec/mocks/hash_excluding_matcher_spec.rb
|
360
|
-
- spec/rspec/mocks/hash_including_matcher_spec.rb
|
361
|
-
- spec/rspec/mocks/instance_method_stasher_spec.rb
|
362
|
-
- spec/rspec/mocks/matchers/have_received_spec.rb
|
363
|
-
- spec/rspec/mocks/matchers/receive_message_chain_spec.rb
|
364
|
-
- spec/rspec/mocks/matchers/receive_messages_spec.rb
|
365
|
-
- spec/rspec/mocks/matchers/receive_spec.rb
|
366
|
-
- spec/rspec/mocks/method_signature_verifier_spec.rb
|
367
|
-
- spec/rspec/mocks/methods_spec.rb
|
368
|
-
- spec/rspec/mocks/mock_expectation_error_spec.rb
|
369
|
-
- spec/rspec/mocks/mock_ordering_spec.rb
|
370
|
-
- spec/rspec/mocks/multiple_return_value_spec.rb
|
371
|
-
- spec/rspec/mocks/mutate_const_spec.rb
|
372
|
-
- spec/rspec/mocks/nil_expectation_warning_spec.rb
|
373
|
-
- spec/rspec/mocks/null_object_mock_spec.rb
|
374
|
-
- spec/rspec/mocks/once_counts_spec.rb
|
375
|
-
- spec/rspec/mocks/options_hash_spec.rb
|
376
|
-
- spec/rspec/mocks/order_group_spec.rb
|
377
|
-
- spec/rspec/mocks/partial_double_spec.rb
|
378
|
-
- spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb
|
379
|
-
- spec/rspec/mocks/passing_argument_matchers_spec.rb
|
380
|
-
- spec/rspec/mocks/precise_counts_spec.rb
|
381
|
-
- spec/rspec/mocks/record_messages_spec.rb
|
382
|
-
- spec/rspec/mocks/serialization_spec.rb
|
383
|
-
- spec/rspec/mocks/space_spec.rb
|
384
|
-
- spec/rspec/mocks/stash_spec.rb
|
385
|
-
- spec/rspec/mocks/stub_chain_spec.rb
|
386
|
-
- spec/rspec/mocks/stub_implementation_spec.rb
|
387
|
-
- spec/rspec/mocks/stub_spec.rb
|
388
|
-
- spec/rspec/mocks/stubbed_message_expectations_spec.rb
|
389
|
-
- spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb
|
390
|
-
- spec/rspec/mocks/syntax_spec.rb
|
391
|
-
- spec/rspec/mocks/test_double_spec.rb
|
392
|
-
- spec/rspec/mocks/to_ary_spec.rb
|
393
|
-
- spec/rspec/mocks/twice_counts_spec.rb
|
394
|
-
- spec/rspec/mocks/verifying_double_spec.rb
|
395
|
-
- spec/rspec/mocks/verifying_message_expecation_spec.rb
|
396
|
-
- spec/rspec/mocks_spec.rb
|
397
|
-
- spec/spec_helper.rb
|
167
|
+
specification_version: 4
|
168
|
+
summary: rspec-mocks-3.0.0.rc1
|
169
|
+
test_files: []
|
398
170
|
has_rdoc:
|