rspec-mocks 2.99.4 → 3.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +1 -0
- data/Changelog.md +89 -105
- data/License.txt +1 -0
- data/README.md +77 -57
- data/features/argument_matchers/explicit.feature +5 -5
- data/features/argument_matchers/general_matchers.feature +10 -10
- data/features/argument_matchers/type_matchers.feature +3 -3
- data/features/message_expectations/allow_any_instance_of.feature +1 -1
- data/features/message_expectations/any_instance.feature +27 -5
- data/features/message_expectations/call_original.feature +2 -2
- data/features/message_expectations/expect_message_using_expect.feature +2 -2
- data/features/message_expectations/expect_message_using_should_receive.feature +2 -2
- data/features/message_expectations/receive_counts.feature +7 -7
- data/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +3 -3
- data/features/method_stubs/README.md +3 -0
- data/features/method_stubs/any_instance.feature +11 -11
- data/features/method_stubs/as_null_object.feature +4 -4
- data/features/method_stubs/simple_return_value_with_stub.feature +7 -7
- data/features/method_stubs/stub_chain.feature +3 -3
- data/features/method_stubs/stub_implementation.feature +2 -2
- data/features/method_stubs/to_ary.feature +2 -2
- data/features/mutating_constants/hiding_defined_constant.feature +2 -2
- data/features/mutating_constants/stub_defined_constant.feature +5 -5
- data/features/mutating_constants/stub_undefined_constant.feature +6 -6
- data/features/outside_rspec/configuration.feature +0 -2
- data/features/outside_rspec/standalone.feature +1 -1
- data/features/spies/spy_partial_mock_method.feature +2 -2
- data/features/spies/spy_pure_mock_method.feature +5 -5
- data/features/spies/spy_unstubbed_method.feature +1 -1
- data/features/support/env.rb +10 -1
- data/features/test_frameworks/test_unit.feature +1 -1
- data/features/verifying_doubles/class_doubles.feature +88 -0
- data/features/verifying_doubles/dynamic_classes.feature +72 -0
- data/features/verifying_doubles/introduction.feature +85 -0
- data/features/verifying_doubles/object_doubles.feature +65 -0
- data/features/verifying_doubles/partial_doubles.feature +34 -0
- data/lib/rspec/mocks.rb +8 -34
- data/lib/rspec/mocks/any_instance/chain.rb +4 -34
- data/lib/rspec/mocks/any_instance/expectation_chain.rb +14 -4
- data/lib/rspec/mocks/any_instance/message_chains.rb +27 -12
- data/lib/rspec/mocks/any_instance/recorder.rb +23 -31
- data/lib/rspec/mocks/any_instance/stub_chain.rb +9 -4
- data/lib/rspec/mocks/argument_list_matcher.rb +8 -1
- data/lib/rspec/mocks/argument_matchers.rb +26 -12
- data/lib/rspec/mocks/arity_calculator.rb +66 -0
- data/lib/rspec/mocks/configuration.rb +42 -14
- data/lib/rspec/mocks/error_generator.rb +34 -10
- data/lib/rspec/mocks/example_methods.rb +64 -19
- data/lib/rspec/mocks/extensions/marshal.rb +0 -15
- data/lib/rspec/mocks/framework.rb +4 -4
- data/lib/rspec/mocks/instance_method_stasher.rb +80 -62
- data/lib/rspec/mocks/matchers/have_received.rb +18 -14
- data/lib/rspec/mocks/matchers/receive.rb +29 -7
- data/lib/rspec/mocks/matchers/receive_messages.rb +72 -0
- data/lib/rspec/mocks/message_expectation.rb +95 -148
- data/lib/rspec/mocks/method_double.rb +77 -139
- data/lib/rspec/mocks/method_reference.rb +95 -0
- data/lib/rspec/mocks/mock.rb +1 -1
- data/lib/rspec/mocks/mutate_const.rb +12 -9
- data/lib/rspec/mocks/object_reference.rb +90 -0
- data/lib/rspec/mocks/order_group.rb +49 -7
- data/lib/rspec/mocks/proxy.rb +72 -33
- data/lib/rspec/mocks/proxy_for_nil.rb +2 -2
- data/lib/rspec/mocks/space.rb +13 -18
- data/lib/rspec/mocks/stub_chain.rb +2 -2
- data/lib/rspec/mocks/syntax.rb +61 -36
- data/lib/rspec/mocks/targets.rb +40 -19
- data/lib/rspec/mocks/test_double.rb +12 -56
- data/lib/rspec/mocks/verifying_double.rb +77 -0
- data/lib/rspec/mocks/verifying_message_expecation.rb +60 -0
- data/lib/rspec/mocks/verifying_proxy.rb +151 -0
- data/lib/rspec/mocks/version.rb +1 -1
- data/spec/rspec/mocks/and_call_original_spec.rb +34 -30
- data/spec/rspec/mocks/and_yield_spec.rb +2 -2
- data/spec/rspec/mocks/any_instance/message_chains_spec.rb +1 -1
- data/spec/rspec/mocks/any_instance_spec.rb +53 -260
- data/spec/rspec/mocks/argument_expectation_spec.rb +4 -4
- data/spec/rspec/mocks/arity_calculator_spec.rb +95 -0
- data/spec/rspec/mocks/array_including_matcher_spec.rb +41 -0
- data/spec/rspec/mocks/at_least_spec.rb +4 -32
- data/spec/rspec/mocks/block_return_value_spec.rb +4 -135
- data/spec/rspec/mocks/combining_implementation_instructions_spec.rb +10 -11
- data/spec/rspec/mocks/configuration_spec.rb +79 -0
- data/spec/rspec/mocks/double_spec.rb +10 -78
- data/spec/rspec/mocks/extensions/marshal_spec.rb +0 -8
- data/spec/rspec/mocks/failing_argument_matchers_spec.rb +49 -4
- data/spec/rspec/mocks/instance_method_stasher_spec.rb +20 -3
- data/spec/rspec/mocks/matchers/have_received_spec.rb +74 -0
- data/spec/rspec/mocks/matchers/receive_messages_spec.rb +140 -0
- data/spec/rspec/mocks/matchers/receive_spec.rb +82 -42
- data/spec/rspec/mocks/methods_spec.rb +1 -1
- data/spec/rspec/mocks/{bug_report_830_spec.rb → mock_expectation_error_spec.rb} +4 -3
- data/spec/rspec/mocks/mock_ordering_spec.rb +11 -0
- data/spec/rspec/mocks/mock_space_spec.rb +10 -1
- data/spec/rspec/mocks/mock_spec.rb +26 -82
- data/spec/rspec/mocks/multiple_return_value_spec.rb +1 -1
- data/spec/rspec/mocks/mutate_const_spec.rb +18 -5
- data/spec/rspec/mocks/null_object_mock_spec.rb +6 -4
- data/spec/rspec/mocks/options_hash_spec.rb +3 -3
- data/spec/rspec/mocks/order_group_spec.rb +27 -0
- data/spec/rspec/mocks/partial_mock_spec.rb +101 -1
- data/spec/rspec/mocks/passing_argument_matchers_spec.rb +3 -20
- data/spec/rspec/mocks/record_messages_spec.rb +4 -4
- data/spec/rspec/mocks/serialization_spec.rb +4 -6
- data/spec/rspec/mocks/space_spec.rb +3 -3
- data/spec/rspec/mocks/stub_chain_spec.rb +0 -12
- data/spec/rspec/mocks/stub_spec.rb +23 -44
- data/spec/rspec/mocks/test_double_spec.rb +3 -22
- data/spec/rspec/mocks/verifying_double_spec.rb +327 -0
- data/spec/rspec/mocks/verifying_message_expecation_spec.rb +68 -0
- data/spec/rspec/mocks_spec.rb +16 -39
- data/spec/spec_helper.rb +29 -18
- metadata +131 -86
- metadata.gz.sig +1 -0
- data/features/message_expectations/expect_any_instance_of.feature +0 -27
- data/lib/rspec/mocks/caller_filter.rb +0 -60
- data/lib/rspec/mocks/deprecation.rb +0 -26
- data/lib/rspec/mocks/extensions/instance_exec.rb +0 -34
- data/lib/rspec/mocks/extensions/proc.rb +0 -63
- data/lib/spec/mocks.rb +0 -4
- data/spec/rspec/mocks/and_return_spec.rb +0 -17
- data/spec/rspec/mocks/any_number_of_times_spec.rb +0 -36
- data/spec/rspec/mocks/before_all_spec.rb +0 -74
- data/spec/rspec/mocks/bug_report_10260_spec.rb +0 -8
- data/spec/rspec/mocks/bug_report_10263_spec.rb +0 -27
- data/spec/rspec/mocks/bug_report_11545_spec.rb +0 -32
- data/spec/rspec/mocks/bug_report_496_spec.rb +0 -17
- data/spec/rspec/mocks/bug_report_600_spec.rb +0 -22
- data/spec/rspec/mocks/bug_report_7611_spec.rb +0 -16
- data/spec/rspec/mocks/bug_report_8165_spec.rb +0 -31
- data/spec/rspec/mocks/bug_report_957_spec.rb +0 -22
data/spec/spec_helper.rb
CHANGED
@@ -4,6 +4,15 @@ begin
|
|
4
4
|
rescue LoadError
|
5
5
|
end
|
6
6
|
|
7
|
+
begin
|
8
|
+
require 'simplecov'
|
9
|
+
|
10
|
+
SimpleCov.start do
|
11
|
+
add_filter "bundle"
|
12
|
+
end
|
13
|
+
rescue LoadError
|
14
|
+
end unless ENV['NO_COVERAGE'] || RUBY_VERSION < '1.9.3'
|
15
|
+
|
7
16
|
RSpec::Matchers.define :include_method do |expected|
|
8
17
|
match do |actual|
|
9
18
|
actual.map { |m| m.to_s }.include?(expected.to_s)
|
@@ -20,28 +29,22 @@ module VerifyAndResetHelpers
|
|
20
29
|
end
|
21
30
|
end
|
22
31
|
|
23
|
-
module
|
24
|
-
def expect_deprecation_with_call_site(file, line
|
32
|
+
module DeprecationHelpers
|
33
|
+
def expect_deprecation_with_call_site(file, line)
|
25
34
|
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
|
26
35
|
expect(options[:call_site]).to include([file, line].join(':'))
|
27
|
-
expect(options[:deprecated]).to match(snippet)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
def expect_warn_deprecation_with_call_site(file, line, snippet=//)
|
32
|
-
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
|
33
|
-
message = options[:message]
|
34
|
-
expect(message).to match(snippet)
|
35
|
-
expect(message).to include([file, line].join(':'))
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
def
|
40
|
-
|
39
|
+
def expect_warning_with_call_site(file, line)
|
40
|
+
expect(Kernel).to receive(:warn).with(/Called from #{file}:#{line}/)
|
41
41
|
end
|
42
|
+
end
|
42
43
|
|
43
|
-
|
44
|
-
|
44
|
+
module VerificationHelpers
|
45
|
+
def prevents(&block)
|
46
|
+
expect(&block).to \
|
47
|
+
raise_error(RSpec::Mocks::MockExpectationError)
|
45
48
|
end
|
46
49
|
end
|
47
50
|
|
@@ -50,16 +53,21 @@ RSpec.configure do |config|
|
|
50
53
|
config.color_enabled = true
|
51
54
|
config.order = :random
|
52
55
|
config.run_all_when_everything_filtered = true
|
53
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
54
56
|
config.filter_run_including :focus
|
55
57
|
|
56
58
|
config.expect_with :rspec do |expectations|
|
57
59
|
expectations.syntax = :expect
|
58
60
|
end
|
59
61
|
|
62
|
+
# TODO: switch most things to the `expect` syntax (and configure only that here)
|
63
|
+
# but keep a small number of specs that use the old syntax in order to test it
|
64
|
+
# (using the "with syntax" shared context defined below).
|
65
|
+
config.mock_with :rspec do |mocks|
|
66
|
+
mocks.syntax = [:should, :expect]
|
67
|
+
end
|
68
|
+
|
60
69
|
old_verbose = nil
|
61
70
|
config.before(:each, :silence_warnings) do
|
62
|
-
allow(RSpec).to receive(:deprecate)
|
63
71
|
old_verbose = $VERBOSE
|
64
72
|
$VERBOSE = nil
|
65
73
|
end
|
@@ -69,7 +77,8 @@ RSpec.configure do |config|
|
|
69
77
|
end
|
70
78
|
|
71
79
|
config.include VerifyAndResetHelpers
|
72
|
-
config.include
|
80
|
+
config.include DeprecationHelpers
|
81
|
+
config.include VerificationHelpers
|
73
82
|
end
|
74
83
|
|
75
84
|
shared_context "with syntax" do |syntax|
|
@@ -85,6 +94,7 @@ shared_context "with syntax" do |syntax|
|
|
85
94
|
end
|
86
95
|
end
|
87
96
|
|
97
|
+
|
88
98
|
shared_context "with isolated configuration" do
|
89
99
|
orig_configuration = nil
|
90
100
|
before do
|
@@ -96,3 +106,4 @@ shared_context "with isolated configuration" do
|
|
96
106
|
RSpec::Mocks.instance_variable_set(:@configuration, orig_configuration)
|
97
107
|
end
|
98
108
|
end
|
109
|
+
|
metadata
CHANGED
@@ -1,69 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-mocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
8
8
|
- David Chelimsky
|
9
|
+
- Myron Marston
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
12
|
+
cert_chain:
|
13
|
+
- !binary |-
|
14
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURqakNDQW5hZ0F3SUJB
|
15
|
+
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJHTVJJd0VBWURWUVFEREFseWMz
|
16
|
+
QmwKWXkxa1pYWXhHekFaQmdvSmtpYUprL0lzWkFFWkZndG5iMjluYkdWbmIz
|
17
|
+
VndjekVUTUJFR0NnbVNKb21UOGl4awpBUmtXQTJOdmJUQWVGdzB4TXpFeE1E
|
18
|
+
Y3hPVFF5TlRsYUZ3MHhOREV4TURjeE9UUXlOVGxhTUVZeEVqQVFCZ05WCkJB
|
19
|
+
TU1DWEp6Y0dWakxXUmxkakViTUJrR0NnbVNKb21UOGl4a0FSa1dDMmR2YjJk
|
20
|
+
c1pXZHZkWEJ6TVJNd0VRWUsKQ1pJbWlaUHlMR1FCR1JZRFkyOXRNSUlCSWpB
|
21
|
+
TkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQQpuaENlWm91
|
22
|
+
RExYV081NW5vK0VkWk5DdGpYamZKUTFYOVRiUGN2QkREMjlPeXBJVWNlMmgv
|
23
|
+
VmRLWEIyZ0k3WkhzCkY1TmtQZ2dzbFRFckdGbVdBdElpdXI3dTk0M1JWcUhP
|
24
|
+
c3lvSXN5MDY1RjlmQ3RyeWtrQSsyMmVsdlREaGE0SXoKUlVDdnVoUTNrbGF0
|
25
|
+
WWs0akYrY0d0MWpOT05OVmRMT2l5MGJNeW52Y003aG9WUTJBb213R3MrY0VP
|
26
|
+
V1EvNGRrRApKY05WM3FmekY1UUJjVEQyMzcyWE5NNTNiMjVuWVZRU1gyS0g1
|
27
|
+
RkY3QmhsS3lvdjMzYk9tMmdBOU0rbVdJdWpXCnFna3l4VmxmcmxFK1pCZ1Yz
|
28
|
+
d1huMUNvamcxTHBUcTM1eU9Bcmd3aW95cnd3bFpaSlI5am9OOXMvbkRrbGZy
|
29
|
+
NUEKK2R5RVRqRmM2Y21FUFdacnQyY0pCUUlEQVFBQm80R0dNSUdETUFrR0Ex
|
30
|
+
VWRFd1FDTUFBd0N3WURWUjBQQkFRRApBZ1N3TUIwR0ExVWREZ1FXQkJTVytX
|
31
|
+
RDdobjFzd0oxQTdpOHRidUZldU5DSkNqQWtCZ05WSFJFRUhUQWJnUmx5CmMz
|
32
|
+
QmxZeTFrWlhaQVoyOXZaMnhsWjI5MWNITXVZMjl0TUNRR0ExVWRFZ1FkTUJ1
|
33
|
+
QkdYSnpjR1ZqTFdSbGRrQm4KYjI5bmJHVm5iM1Z3Y3k1amIyMHdEUVlKS29a
|
34
|
+
SWh2Y05BUUVGQlFBRGdnRUJBSDI3akFaOHNEN3ZuWHVwajZZKwpCYUJkZkh0
|
35
|
+
Q2tGYXNsTEowYUt1TURJVlh3WXVLZnFvVzE1Y1pQRExtU0lFQnVRRk0zbHc2
|
36
|
+
ZC9oRUVMNFVvMmpaCkZ2dG1INU94aWZQRHpGeVV0Q0w0eXA2cWdOZS9YZjZz
|
37
|
+
RHNSZzZGbUtjcGdxQ3dOT21zVmlhZjBMUFNVSC9HWVEKM1Rlb3o4UUNhRGJE
|
38
|
+
N0FLc2ZmVDdlRHJuYkhuS3dlTzFYZGVtUkpDOTh1L3lZeG5Hek1TV0tFc24w
|
39
|
+
OWV0QmxaOQo3SDY3azVaM3VmNmNmTFpnVG9XTDZ6U2h6WlkzTnVuNXI3M1lz
|
40
|
+
TmYyL1FaT2U0VVplNHZmR3ZuNmJhdzUzeXM5CjF5SEMxQWNTWXB2aTJkQWJP
|
41
|
+
aUhUNWlRRitrcm00d3NlOEtjdFhnVE5uak1zSEVvR0t1bEpTMi9zWmw5MGpj
|
42
|
+
Q3oKbXVBPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
43
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
13
44
|
dependencies:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: rspec-support
|
47
|
+
requirement: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - '='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 3.0.0.beta1
|
52
|
+
type: :runtime
|
53
|
+
prerelease: false
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - '='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 3.0.0.beta1
|
14
59
|
- !ruby/object:Gem::Dependency
|
15
60
|
name: rake
|
16
61
|
requirement: !ruby/object:Gem::Requirement
|
17
62
|
requirements:
|
18
|
-
- -
|
63
|
+
- - ~>
|
19
64
|
- !ruby/object:Gem::Version
|
20
65
|
version: 10.0.0
|
21
66
|
type: :development
|
22
67
|
prerelease: false
|
23
68
|
version_requirements: !ruby/object:Gem::Requirement
|
24
69
|
requirements:
|
25
|
-
- -
|
70
|
+
- - ~>
|
26
71
|
- !ruby/object:Gem::Version
|
27
72
|
version: 10.0.0
|
28
73
|
- !ruby/object:Gem::Dependency
|
29
74
|
name: cucumber
|
30
75
|
requirement: !ruby/object:Gem::Requirement
|
31
76
|
requirements:
|
32
|
-
- -
|
77
|
+
- - ~>
|
33
78
|
- !ruby/object:Gem::Version
|
34
79
|
version: 1.1.9
|
35
80
|
type: :development
|
36
81
|
prerelease: false
|
37
82
|
version_requirements: !ruby/object:Gem::Requirement
|
38
83
|
requirements:
|
39
|
-
- -
|
84
|
+
- - ~>
|
40
85
|
- !ruby/object:Gem::Version
|
41
86
|
version: 1.1.9
|
42
87
|
- !ruby/object:Gem::Dependency
|
43
88
|
name: aruba
|
44
89
|
requirement: !ruby/object:Gem::Requirement
|
45
90
|
requirements:
|
46
|
-
- -
|
91
|
+
- - ~>
|
47
92
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
93
|
+
version: '0.5'
|
49
94
|
type: :development
|
50
95
|
prerelease: false
|
51
96
|
version_requirements: !ruby/object:Gem::Requirement
|
52
97
|
requirements:
|
53
|
-
- -
|
98
|
+
- - ~>
|
54
99
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
100
|
+
version: '0.5'
|
56
101
|
description: RSpec's 'test double' framework, with support for stubbing and mocking
|
57
|
-
email: rspec
|
102
|
+
email: rspec@googlegroups.com
|
58
103
|
executables: []
|
59
104
|
extensions: []
|
60
105
|
extra_rdoc_files: []
|
61
106
|
files:
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
107
|
+
- lib/rspec/mocks.rb
|
108
|
+
- lib/rspec/mocks/any_instance/chain.rb
|
109
|
+
- lib/rspec/mocks/any_instance/expectation_chain.rb
|
110
|
+
- lib/rspec/mocks/any_instance/message_chains.rb
|
111
|
+
- lib/rspec/mocks/any_instance/recorder.rb
|
112
|
+
- lib/rspec/mocks/any_instance/stub_chain.rb
|
113
|
+
- lib/rspec/mocks/any_instance/stub_chain_chain.rb
|
114
|
+
- lib/rspec/mocks/argument_list_matcher.rb
|
115
|
+
- lib/rspec/mocks/argument_matchers.rb
|
116
|
+
- lib/rspec/mocks/arity_calculator.rb
|
117
|
+
- lib/rspec/mocks/configuration.rb
|
118
|
+
- lib/rspec/mocks/error_generator.rb
|
119
|
+
- lib/rspec/mocks/errors.rb
|
120
|
+
- lib/rspec/mocks/example_methods.rb
|
121
|
+
- lib/rspec/mocks/extensions/marshal.rb
|
122
|
+
- lib/rspec/mocks/framework.rb
|
123
|
+
- lib/rspec/mocks/instance_method_stasher.rb
|
124
|
+
- lib/rspec/mocks/matchers/have_received.rb
|
125
|
+
- lib/rspec/mocks/matchers/receive.rb
|
126
|
+
- lib/rspec/mocks/matchers/receive_messages.rb
|
127
|
+
- lib/rspec/mocks/message_expectation.rb
|
128
|
+
- lib/rspec/mocks/method_double.rb
|
129
|
+
- lib/rspec/mocks/method_reference.rb
|
130
|
+
- lib/rspec/mocks/mock.rb
|
131
|
+
- lib/rspec/mocks/mutate_const.rb
|
132
|
+
- lib/rspec/mocks/object_reference.rb
|
133
|
+
- lib/rspec/mocks/order_group.rb
|
134
|
+
- lib/rspec/mocks/proxy.rb
|
135
|
+
- lib/rspec/mocks/proxy_for_nil.rb
|
136
|
+
- lib/rspec/mocks/space.rb
|
137
|
+
- lib/rspec/mocks/standalone.rb
|
138
|
+
- lib/rspec/mocks/stub_chain.rb
|
139
|
+
- lib/rspec/mocks/syntax.rb
|
140
|
+
- lib/rspec/mocks/targets.rb
|
141
|
+
- lib/rspec/mocks/test_double.rb
|
142
|
+
- lib/rspec/mocks/verifying_double.rb
|
143
|
+
- lib/rspec/mocks/verifying_message_expecation.rb
|
144
|
+
- lib/rspec/mocks/verifying_proxy.rb
|
145
|
+
- lib/rspec/mocks/version.rb
|
66
146
|
- README.md
|
147
|
+
- License.txt
|
148
|
+
- Changelog.md
|
149
|
+
- .yardopts
|
150
|
+
- .document
|
67
151
|
- features/README.md
|
68
152
|
- features/Scope.md
|
69
153
|
- features/Upgrade.md
|
@@ -76,7 +160,6 @@ files:
|
|
76
160
|
- features/message_expectations/any_instance.feature
|
77
161
|
- features/message_expectations/block_local_expectations.feature.pending
|
78
162
|
- features/message_expectations/call_original.feature
|
79
|
-
- features/message_expectations/expect_any_instance_of.feature
|
80
163
|
- features/message_expectations/expect_message_using_expect.feature
|
81
164
|
- features/message_expectations/expect_message_using_should_receive.feature
|
82
165
|
- features/message_expectations/receive_counts.feature
|
@@ -102,63 +185,21 @@ files:
|
|
102
185
|
- features/support/env.rb
|
103
186
|
- features/support/rubinius.rb
|
104
187
|
- features/test_frameworks/test_unit.feature
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
- lib/rspec/mocks/any_instance/stub_chain.rb
|
111
|
-
- lib/rspec/mocks/any_instance/stub_chain_chain.rb
|
112
|
-
- lib/rspec/mocks/argument_list_matcher.rb
|
113
|
-
- lib/rspec/mocks/argument_matchers.rb
|
114
|
-
- lib/rspec/mocks/caller_filter.rb
|
115
|
-
- lib/rspec/mocks/configuration.rb
|
116
|
-
- lib/rspec/mocks/deprecation.rb
|
117
|
-
- lib/rspec/mocks/error_generator.rb
|
118
|
-
- lib/rspec/mocks/errors.rb
|
119
|
-
- lib/rspec/mocks/example_methods.rb
|
120
|
-
- lib/rspec/mocks/extensions/instance_exec.rb
|
121
|
-
- lib/rspec/mocks/extensions/marshal.rb
|
122
|
-
- lib/rspec/mocks/extensions/proc.rb
|
123
|
-
- lib/rspec/mocks/framework.rb
|
124
|
-
- lib/rspec/mocks/instance_method_stasher.rb
|
125
|
-
- lib/rspec/mocks/matchers/have_received.rb
|
126
|
-
- lib/rspec/mocks/matchers/receive.rb
|
127
|
-
- lib/rspec/mocks/message_expectation.rb
|
128
|
-
- lib/rspec/mocks/method_double.rb
|
129
|
-
- lib/rspec/mocks/mock.rb
|
130
|
-
- lib/rspec/mocks/mutate_const.rb
|
131
|
-
- lib/rspec/mocks/order_group.rb
|
132
|
-
- lib/rspec/mocks/proxy.rb
|
133
|
-
- lib/rspec/mocks/proxy_for_nil.rb
|
134
|
-
- lib/rspec/mocks/space.rb
|
135
|
-
- lib/rspec/mocks/standalone.rb
|
136
|
-
- lib/rspec/mocks/stub_chain.rb
|
137
|
-
- lib/rspec/mocks/syntax.rb
|
138
|
-
- lib/rspec/mocks/targets.rb
|
139
|
-
- lib/rspec/mocks/test_double.rb
|
140
|
-
- lib/rspec/mocks/version.rb
|
141
|
-
- lib/spec/mocks.rb
|
188
|
+
- features/verifying_doubles/class_doubles.feature
|
189
|
+
- features/verifying_doubles/dynamic_classes.feature
|
190
|
+
- features/verifying_doubles/introduction.feature
|
191
|
+
- features/verifying_doubles/object_doubles.feature
|
192
|
+
- features/verifying_doubles/partial_doubles.feature
|
142
193
|
- spec/rspec/mocks/and_call_original_spec.rb
|
143
|
-
- spec/rspec/mocks/and_return_spec.rb
|
144
194
|
- spec/rspec/mocks/and_yield_spec.rb
|
145
195
|
- spec/rspec/mocks/any_instance/message_chains_spec.rb
|
146
196
|
- spec/rspec/mocks/any_instance_spec.rb
|
147
|
-
- spec/rspec/mocks/any_number_of_times_spec.rb
|
148
197
|
- spec/rspec/mocks/argument_expectation_spec.rb
|
198
|
+
- spec/rspec/mocks/arity_calculator_spec.rb
|
199
|
+
- spec/rspec/mocks/array_including_matcher_spec.rb
|
149
200
|
- spec/rspec/mocks/at_least_spec.rb
|
150
201
|
- spec/rspec/mocks/at_most_spec.rb
|
151
|
-
- spec/rspec/mocks/before_all_spec.rb
|
152
202
|
- spec/rspec/mocks/block_return_value_spec.rb
|
153
|
-
- spec/rspec/mocks/bug_report_10260_spec.rb
|
154
|
-
- spec/rspec/mocks/bug_report_10263_spec.rb
|
155
|
-
- spec/rspec/mocks/bug_report_11545_spec.rb
|
156
|
-
- spec/rspec/mocks/bug_report_496_spec.rb
|
157
|
-
- spec/rspec/mocks/bug_report_600_spec.rb
|
158
|
-
- spec/rspec/mocks/bug_report_7611_spec.rb
|
159
|
-
- spec/rspec/mocks/bug_report_8165_spec.rb
|
160
|
-
- spec/rspec/mocks/bug_report_830_spec.rb
|
161
|
-
- spec/rspec/mocks/bug_report_957_spec.rb
|
162
203
|
- spec/rspec/mocks/combining_implementation_instructions_spec.rb
|
163
204
|
- spec/rspec/mocks/configuration_spec.rb
|
164
205
|
- spec/rspec/mocks/double_spec.rb
|
@@ -168,8 +209,10 @@ files:
|
|
168
209
|
- spec/rspec/mocks/hash_including_matcher_spec.rb
|
169
210
|
- spec/rspec/mocks/instance_method_stasher_spec.rb
|
170
211
|
- spec/rspec/mocks/matchers/have_received_spec.rb
|
212
|
+
- spec/rspec/mocks/matchers/receive_messages_spec.rb
|
171
213
|
- spec/rspec/mocks/matchers/receive_spec.rb
|
172
214
|
- spec/rspec/mocks/methods_spec.rb
|
215
|
+
- spec/rspec/mocks/mock_expectation_error_spec.rb
|
173
216
|
- spec/rspec/mocks/mock_ordering_spec.rb
|
174
217
|
- spec/rspec/mocks/mock_space_spec.rb
|
175
218
|
- spec/rspec/mocks/mock_spec.rb
|
@@ -179,6 +222,7 @@ files:
|
|
179
222
|
- spec/rspec/mocks/null_object_mock_spec.rb
|
180
223
|
- spec/rspec/mocks/once_counts_spec.rb
|
181
224
|
- spec/rspec/mocks/options_hash_spec.rb
|
225
|
+
- spec/rspec/mocks/order_group_spec.rb
|
182
226
|
- spec/rspec/mocks/partial_mock_spec.rb
|
183
227
|
- spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb
|
184
228
|
- spec/rspec/mocks/passing_argument_matchers_spec.rb
|
@@ -195,6 +239,8 @@ files:
|
|
195
239
|
- spec/rspec/mocks/test_double_spec.rb
|
196
240
|
- spec/rspec/mocks/to_ary_spec.rb
|
197
241
|
- spec/rspec/mocks/twice_counts_spec.rb
|
242
|
+
- spec/rspec/mocks/verifying_double_spec.rb
|
243
|
+
- spec/rspec/mocks/verifying_message_expecation_spec.rb
|
198
244
|
- spec/rspec/mocks_spec.rb
|
199
245
|
- spec/spec_helper.rb
|
200
246
|
homepage: http://github.com/rspec/rspec-mocks
|
@@ -203,25 +249,25 @@ licenses:
|
|
203
249
|
metadata: {}
|
204
250
|
post_install_message:
|
205
251
|
rdoc_options:
|
206
|
-
-
|
252
|
+
- --charset=UTF-8
|
207
253
|
require_paths:
|
208
254
|
- lib
|
209
255
|
required_ruby_version: !ruby/object:Gem::Requirement
|
210
256
|
requirements:
|
211
|
-
- -
|
257
|
+
- - ! '>='
|
212
258
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
259
|
+
version: 1.8.7
|
214
260
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
261
|
requirements:
|
216
|
-
- -
|
262
|
+
- - ! '>'
|
217
263
|
- !ruby/object:Gem::Version
|
218
|
-
version:
|
264
|
+
version: 1.3.1
|
219
265
|
requirements: []
|
220
266
|
rubyforge_project: rspec
|
221
|
-
rubygems_version: 2.
|
267
|
+
rubygems_version: 2.0.7
|
222
268
|
signing_key:
|
223
269
|
specification_version: 4
|
224
|
-
summary: rspec-mocks-
|
270
|
+
summary: rspec-mocks-3.0.0.beta1
|
225
271
|
test_files:
|
226
272
|
- features/README.md
|
227
273
|
- features/Scope.md
|
@@ -235,7 +281,6 @@ test_files:
|
|
235
281
|
- features/message_expectations/any_instance.feature
|
236
282
|
- features/message_expectations/block_local_expectations.feature.pending
|
237
283
|
- features/message_expectations/call_original.feature
|
238
|
-
- features/message_expectations/expect_any_instance_of.feature
|
239
284
|
- features/message_expectations/expect_message_using_expect.feature
|
240
285
|
- features/message_expectations/expect_message_using_should_receive.feature
|
241
286
|
- features/message_expectations/receive_counts.feature
|
@@ -261,26 +306,21 @@ test_files:
|
|
261
306
|
- features/support/env.rb
|
262
307
|
- features/support/rubinius.rb
|
263
308
|
- features/test_frameworks/test_unit.feature
|
309
|
+
- features/verifying_doubles/class_doubles.feature
|
310
|
+
- features/verifying_doubles/dynamic_classes.feature
|
311
|
+
- features/verifying_doubles/introduction.feature
|
312
|
+
- features/verifying_doubles/object_doubles.feature
|
313
|
+
- features/verifying_doubles/partial_doubles.feature
|
264
314
|
- spec/rspec/mocks/and_call_original_spec.rb
|
265
|
-
- spec/rspec/mocks/and_return_spec.rb
|
266
315
|
- spec/rspec/mocks/and_yield_spec.rb
|
267
316
|
- spec/rspec/mocks/any_instance/message_chains_spec.rb
|
268
317
|
- spec/rspec/mocks/any_instance_spec.rb
|
269
|
-
- spec/rspec/mocks/any_number_of_times_spec.rb
|
270
318
|
- spec/rspec/mocks/argument_expectation_spec.rb
|
319
|
+
- spec/rspec/mocks/arity_calculator_spec.rb
|
320
|
+
- spec/rspec/mocks/array_including_matcher_spec.rb
|
271
321
|
- spec/rspec/mocks/at_least_spec.rb
|
272
322
|
- spec/rspec/mocks/at_most_spec.rb
|
273
|
-
- spec/rspec/mocks/before_all_spec.rb
|
274
323
|
- spec/rspec/mocks/block_return_value_spec.rb
|
275
|
-
- spec/rspec/mocks/bug_report_10260_spec.rb
|
276
|
-
- spec/rspec/mocks/bug_report_10263_spec.rb
|
277
|
-
- spec/rspec/mocks/bug_report_11545_spec.rb
|
278
|
-
- spec/rspec/mocks/bug_report_496_spec.rb
|
279
|
-
- spec/rspec/mocks/bug_report_600_spec.rb
|
280
|
-
- spec/rspec/mocks/bug_report_7611_spec.rb
|
281
|
-
- spec/rspec/mocks/bug_report_8165_spec.rb
|
282
|
-
- spec/rspec/mocks/bug_report_830_spec.rb
|
283
|
-
- spec/rspec/mocks/bug_report_957_spec.rb
|
284
324
|
- spec/rspec/mocks/combining_implementation_instructions_spec.rb
|
285
325
|
- spec/rspec/mocks/configuration_spec.rb
|
286
326
|
- spec/rspec/mocks/double_spec.rb
|
@@ -290,8 +330,10 @@ test_files:
|
|
290
330
|
- spec/rspec/mocks/hash_including_matcher_spec.rb
|
291
331
|
- spec/rspec/mocks/instance_method_stasher_spec.rb
|
292
332
|
- spec/rspec/mocks/matchers/have_received_spec.rb
|
333
|
+
- spec/rspec/mocks/matchers/receive_messages_spec.rb
|
293
334
|
- spec/rspec/mocks/matchers/receive_spec.rb
|
294
335
|
- spec/rspec/mocks/methods_spec.rb
|
336
|
+
- spec/rspec/mocks/mock_expectation_error_spec.rb
|
295
337
|
- spec/rspec/mocks/mock_ordering_spec.rb
|
296
338
|
- spec/rspec/mocks/mock_space_spec.rb
|
297
339
|
- spec/rspec/mocks/mock_spec.rb
|
@@ -301,6 +343,7 @@ test_files:
|
|
301
343
|
- spec/rspec/mocks/null_object_mock_spec.rb
|
302
344
|
- spec/rspec/mocks/once_counts_spec.rb
|
303
345
|
- spec/rspec/mocks/options_hash_spec.rb
|
346
|
+
- spec/rspec/mocks/order_group_spec.rb
|
304
347
|
- spec/rspec/mocks/partial_mock_spec.rb
|
305
348
|
- spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb
|
306
349
|
- spec/rspec/mocks/passing_argument_matchers_spec.rb
|
@@ -317,6 +360,8 @@ test_files:
|
|
317
360
|
- spec/rspec/mocks/test_double_spec.rb
|
318
361
|
- spec/rspec/mocks/to_ary_spec.rb
|
319
362
|
- spec/rspec/mocks/twice_counts_spec.rb
|
363
|
+
- spec/rspec/mocks/verifying_double_spec.rb
|
364
|
+
- spec/rspec/mocks/verifying_message_expecation_spec.rb
|
320
365
|
- spec/rspec/mocks_spec.rb
|
321
366
|
- spec/spec_helper.rb
|
322
367
|
has_rdoc:
|