rr 1.0.4 → 1.0.5.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGES.md +376 -0
- data/Gemfile +7 -10
- data/README.md +822 -0
- data/Rakefile +24 -78
- data/VERSION +1 -0
- data/lib/rr.rb +3 -0
- data/lib/rr/adapters/minitest.rb +6 -0
- data/lib/rr/adapters/rr_methods.rb +6 -10
- data/lib/rr/adapters/rspec.rb +3 -0
- data/lib/rr/adapters/rspec2.rb +30 -0
- data/lib/rr/adapters/test_unit.rb +2 -0
- data/lib/rr/double.rb +3 -2
- data/lib/rr/double_definitions/child_double_definition_create.rb +3 -2
- data/lib/rr/double_definitions/double_definition.rb +15 -13
- data/lib/rr/double_definitions/double_definition_create.rb +9 -5
- data/lib/rr/double_definitions/double_injections/any_instance_of.rb +3 -2
- data/lib/rr/double_definitions/strategies/strategy.rb +5 -4
- data/lib/rr/double_definitions/strategies/strategy_methods.rb +6 -8
- data/lib/rr/double_definitions/strategies/verification/mock.rb +3 -3
- data/lib/rr/double_matches.rb +2 -1
- data/lib/rr/expectations/argument_equality_expectation.rb +2 -2
- data/lib/rr/expectations/times_called_expectation.rb +2 -2
- data/lib/rr/injections/double_injection.rb +12 -11
- data/lib/rr/injections/injection.rb +2 -2
- data/lib/rr/injections/method_missing_injection.rb +21 -7
- data/lib/rr/injections/singleton_method_added_injection.rb +3 -1
- data/lib/rr/method_dispatches/base_method_dispatch.rb +1 -1
- data/lib/rr/method_dispatches/method_dispatch.rb +2 -1
- data/lib/rr/method_dispatches/method_missing_dispatch.rb +2 -1
- data/lib/rr/proc_from_block.rb +8 -4
- data/lib/rr/space.rb +3 -2
- data/lib/rr/times_called_matchers/times_called_matcher.rb +2 -2
- data/lib/rr/version.rb +5 -0
- data/lib/rr/wildcard_matchers/boolean.rb +2 -2
- data/spec/runner.rb +41 -0
- metadata +45 -133
- data/.gitignore +0 -10
- data/.runrc +0 -3
- data/.rvmrc +0 -2
- data/CHANGES +0 -266
- data/Gemfile.lock +0 -31
- data/README.rdoc +0 -392
- data/benchmarks/rr_benchmark.rb +0 -32
- data/benchmarks/rspec_benchmark.rb +0 -14
- data/doc/0.6.0.release.markdown +0 -81
- data/doc/todo.txt +0 -0
- data/introducting_rr.txt +0 -206
- data/rr.gemspec +0 -37
- data/spec/api/any_instance_of/all_instances_of_spec.rb +0 -12
- data/spec/api/any_instance_of/any_instance_of_spec.rb +0 -47
- data/spec/api/any_instance_of/instance_of_spec.rb +0 -12
- data/spec/api/dont_allow/dont_allow_after_stub_spec.rb +0 -14
- data/spec/api/mock/mock_spec.rb +0 -193
- data/spec/api/proxy/proxy_spec.rb +0 -86
- data/spec/api/spy/spy_spec.rb +0 -49
- data/spec/api/strong/strong_spec.rb +0 -87
- data/spec/api/stub/stub_spec.rb +0 -152
- data/spec/core_spec_suite.rb +0 -19
- data/spec/environment_fixture_setup.rb +0 -8
- data/spec/minitest_spec_suite.rb +0 -21
- data/spec/proc_from_block_spec.rb +0 -14
- data/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +0 -67
- data/spec/rr/adapters/rr_methods_creator_spec.rb +0 -137
- data/spec/rr/adapters/rr_methods_space_spec.rb +0 -98
- data/spec/rr/adapters/rr_methods_spec_helper.rb +0 -11
- data/spec/rr/adapters/rr_methods_times_matcher_spec.rb +0 -13
- data/spec/rr/double_definitions/child_double_definition_creator_spec.rb +0 -112
- data/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +0 -91
- data/spec/rr/double_definitions/double_definition_create_spec.rb +0 -443
- data/spec/rr/double_injection/double_injection_spec.rb +0 -546
- data/spec/rr/double_injection/double_injection_verify_spec.rb +0 -29
- data/spec/rr/errors/rr_error_spec.rb +0 -67
- data/spec/rr/expectations/any_argument_expectation_spec.rb +0 -47
- data/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +0 -14
- data/spec/rr/expectations/argument_equality_expectation_spec.rb +0 -135
- data/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +0 -34
- data/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +0 -82
- data/spec/rr/expectations/hash_including_spec.rb +0 -17
- data/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +0 -59
- data/spec/rr/expectations/satisfy_spec.rb +0 -14
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +0 -22
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +0 -37
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +0 -43
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +0 -15
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +0 -58
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +0 -35
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +0 -39
- data/spec/rr/minitest/minitest_integration_test.rb +0 -59
- data/spec/rr/minitest/test_helper.rb +0 -7
- data/spec/rr/rspec/invocation_matcher_spec.rb +0 -279
- data/spec/rr/rspec/rspec_adapter_spec.rb +0 -63
- data/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +0 -31
- data/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +0 -11
- data/spec/rr/rspec/rspec_usage_spec.rb +0 -86
- data/spec/rr/space/hash_with_object_id_key_spec.rb +0 -88
- data/spec/rr/space/space_spec.rb +0 -596
- data/spec/rr/test_unit/test_helper.rb +0 -7
- data/spec/rr/test_unit/test_unit_backtrace_test.rb +0 -36
- data/spec/rr/test_unit/test_unit_integration_test.rb +0 -59
- data/spec/rr/times_called_matchers/any_times_matcher_spec.rb +0 -47
- data/spec/rr/times_called_matchers/at_least_matcher_spec.rb +0 -55
- data/spec/rr/times_called_matchers/at_most_matcher_spec.rb +0 -70
- data/spec/rr/times_called_matchers/integer_matcher_spec.rb +0 -70
- data/spec/rr/times_called_matchers/proc_matcher_spec.rb +0 -55
- data/spec/rr/times_called_matchers/range_matcher_spec.rb +0 -76
- data/spec/rr/times_called_matchers/times_called_matcher_spec.rb +0 -118
- data/spec/rr/wildcard_matchers/anything_spec.rb +0 -24
- data/spec/rr/wildcard_matchers/boolean_spec.rb +0 -36
- data/spec/rr/wildcard_matchers/duck_type_spec.rb +0 -52
- data/spec/rr/wildcard_matchers/is_a_spec.rb +0 -32
- data/spec/rr/wildcard_matchers/numeric_spec.rb +0 -32
- data/spec/rr/wildcard_matchers/range_spec.rb +0 -35
- data/spec/rr/wildcard_matchers/regexp_spec.rb +0 -43
- data/spec/rr_spec.rb +0 -28
- data/spec/rspec_spec_suite.rb +0 -17
- data/spec/spec.opts +0 -10
- data/spec/spec_helper.rb +0 -41
- data/spec/spec_suite.rb +0 -54
- data/spec/spy_verification_spec.rb +0 -129
- data/spec/test_unit_spec_suite.rb +0 -21
metadata
CHANGED
@@ -1,47 +1,34 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rr
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.0.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5.rc1
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Brian Takita
|
8
|
+
- Elliot Winkler
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-06-16 00:00:00 -07:00
|
14
|
-
default_executable:
|
12
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
15
13
|
dependencies: []
|
16
|
-
|
17
|
-
|
18
|
-
email:
|
14
|
+
description: RR is a double framework that features a rich selection of double techniques
|
15
|
+
and a terse syntax.
|
16
|
+
email:
|
17
|
+
- elliot.winkler@gmail.com
|
19
18
|
executables: []
|
20
|
-
|
21
19
|
extensions: []
|
22
|
-
|
23
|
-
|
24
|
-
- CHANGES
|
25
|
-
- README.rdoc
|
26
|
-
files:
|
27
|
-
- .gitignore
|
28
|
-
- .runrc
|
29
|
-
- .rvmrc
|
30
|
-
- CHANGES
|
31
|
-
- Gemfile
|
32
|
-
- Gemfile.lock
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- CHANGES.md
|
33
23
|
- LICENSE
|
34
|
-
- README.
|
24
|
+
- README.md
|
25
|
+
- VERSION
|
26
|
+
- Gemfile
|
35
27
|
- Rakefile
|
36
|
-
- benchmarks/rr_benchmark.rb
|
37
|
-
- benchmarks/rspec_benchmark.rb
|
38
|
-
- doc/0.6.0.release.markdown
|
39
|
-
- doc/todo.txt
|
40
|
-
- introducting_rr.txt
|
41
|
-
- lib/rr.rb
|
42
28
|
- lib/rr/adapters/minitest.rb
|
43
29
|
- lib/rr/adapters/rr_methods.rb
|
44
30
|
- lib/rr/adapters/rspec.rb
|
31
|
+
- lib/rr/adapters/rspec2.rb
|
45
32
|
- lib/rr/adapters/test_unit.rb
|
46
33
|
- lib/rr/blank_slate.rb
|
47
34
|
- lib/rr/class_instance_method_defined.rb
|
@@ -103,7 +90,7 @@ files:
|
|
103
90
|
- lib/rr/times_called_matchers/range_matcher.rb
|
104
91
|
- lib/rr/times_called_matchers/terminal.rb
|
105
92
|
- lib/rr/times_called_matchers/times_called_matcher.rb
|
106
|
-
- lib/rr/
|
93
|
+
- lib/rr/version.rb
|
107
94
|
- lib/rr/wildcard_matchers/anything.rb
|
108
95
|
- lib/rr/wildcard_matchers/boolean.rb
|
109
96
|
- lib/rr/wildcard_matchers/duck_type.rb
|
@@ -113,109 +100,34 @@ files:
|
|
113
100
|
- lib/rr/wildcard_matchers/range.rb
|
114
101
|
- lib/rr/wildcard_matchers/regexp.rb
|
115
102
|
- lib/rr/wildcard_matchers/satisfy.rb
|
116
|
-
- rr.
|
117
|
-
-
|
118
|
-
- spec/
|
119
|
-
|
120
|
-
|
121
|
-
-
|
122
|
-
|
123
|
-
- spec/api/spy/spy_spec.rb
|
124
|
-
- spec/api/strong/strong_spec.rb
|
125
|
-
- spec/api/stub/stub_spec.rb
|
126
|
-
- spec/core_spec_suite.rb
|
127
|
-
- spec/environment_fixture_setup.rb
|
128
|
-
- spec/minitest_spec_suite.rb
|
129
|
-
- spec/proc_from_block_spec.rb
|
130
|
-
- spec/rr/adapters/rr_methods_argument_matcher_spec.rb
|
131
|
-
- spec/rr/adapters/rr_methods_creator_spec.rb
|
132
|
-
- spec/rr/adapters/rr_methods_space_spec.rb
|
133
|
-
- spec/rr/adapters/rr_methods_spec_helper.rb
|
134
|
-
- spec/rr/adapters/rr_methods_times_matcher_spec.rb
|
135
|
-
- spec/rr/double_definitions/child_double_definition_creator_spec.rb
|
136
|
-
- spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb
|
137
|
-
- spec/rr/double_definitions/double_definition_create_spec.rb
|
138
|
-
- spec/rr/double_injection/double_injection_spec.rb
|
139
|
-
- spec/rr/double_injection/double_injection_verify_spec.rb
|
140
|
-
- spec/rr/errors/rr_error_spec.rb
|
141
|
-
- spec/rr/expectations/any_argument_expectation_spec.rb
|
142
|
-
- spec/rr/expectations/anything_argument_equality_expectation_spec.rb
|
143
|
-
- spec/rr/expectations/argument_equality_expectation_spec.rb
|
144
|
-
- spec/rr/expectations/boolean_argument_equality_expectation_spec.rb
|
145
|
-
- spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb
|
146
|
-
- spec/rr/expectations/hash_including_spec.rb
|
147
|
-
- spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb
|
148
|
-
- spec/rr/expectations/satisfy_spec.rb
|
149
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb
|
150
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb
|
151
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb
|
152
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
|
153
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb
|
154
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb
|
155
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb
|
156
|
-
- spec/rr/minitest/minitest_integration_test.rb
|
157
|
-
- spec/rr/minitest/test_helper.rb
|
158
|
-
- spec/rr/rspec/invocation_matcher_spec.rb
|
159
|
-
- spec/rr/rspec/rspec_adapter_spec.rb
|
160
|
-
- spec/rr/rspec/rspec_backtrace_tweaking_spec.rb
|
161
|
-
- spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb
|
162
|
-
- spec/rr/rspec/rspec_usage_spec.rb
|
163
|
-
- spec/rr/space/hash_with_object_id_key_spec.rb
|
164
|
-
- spec/rr/space/space_spec.rb
|
165
|
-
- spec/rr/test_unit/test_helper.rb
|
166
|
-
- spec/rr/test_unit/test_unit_backtrace_test.rb
|
167
|
-
- spec/rr/test_unit/test_unit_integration_test.rb
|
168
|
-
- spec/rr/times_called_matchers/any_times_matcher_spec.rb
|
169
|
-
- spec/rr/times_called_matchers/at_least_matcher_spec.rb
|
170
|
-
- spec/rr/times_called_matchers/at_most_matcher_spec.rb
|
171
|
-
- spec/rr/times_called_matchers/integer_matcher_spec.rb
|
172
|
-
- spec/rr/times_called_matchers/proc_matcher_spec.rb
|
173
|
-
- spec/rr/times_called_matchers/range_matcher_spec.rb
|
174
|
-
- spec/rr/times_called_matchers/times_called_matcher_spec.rb
|
175
|
-
- spec/rr/wildcard_matchers/anything_spec.rb
|
176
|
-
- spec/rr/wildcard_matchers/boolean_spec.rb
|
177
|
-
- spec/rr/wildcard_matchers/duck_type_spec.rb
|
178
|
-
- spec/rr/wildcard_matchers/is_a_spec.rb
|
179
|
-
- spec/rr/wildcard_matchers/numeric_spec.rb
|
180
|
-
- spec/rr/wildcard_matchers/range_spec.rb
|
181
|
-
- spec/rr/wildcard_matchers/regexp_spec.rb
|
182
|
-
- spec/rr_spec.rb
|
183
|
-
- spec/rspec_spec_suite.rb
|
184
|
-
- spec/spec.opts
|
185
|
-
- spec/spec_helper.rb
|
186
|
-
- spec/spec_suite.rb
|
187
|
-
- spec/spy_verification_spec.rb
|
188
|
-
- spec/test_unit_spec_suite.rb
|
189
|
-
has_rdoc: true
|
190
|
-
homepage: http://pivotallabs.com
|
191
|
-
licenses: []
|
192
|
-
|
103
|
+
- lib/rr/wildcard_matchers.rb
|
104
|
+
- lib/rr.rb
|
105
|
+
- spec/runner.rb
|
106
|
+
homepage: http://rr.github.com/rr
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata: {}
|
193
110
|
post_install_message:
|
194
|
-
rdoc_options:
|
195
|
-
|
196
|
-
- README.rdoc
|
197
|
-
- --inline-source
|
198
|
-
- --line-numbers
|
199
|
-
require_paths:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
200
113
|
- lib
|
201
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
- !ruby/object:Gem::Version
|
212
|
-
version: "0"
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ! '>'
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 1.3.1
|
213
124
|
requirements: []
|
214
|
-
|
215
|
-
|
216
|
-
rubygems_version: 1.3.9.2
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.0.3
|
217
127
|
signing_key:
|
218
|
-
specification_version:
|
219
|
-
summary: RR
|
220
|
-
|
221
|
-
|
128
|
+
specification_version: 4
|
129
|
+
summary: RR is a double framework that features a rich selection of double techniques
|
130
|
+
and a terse syntax.
|
131
|
+
test_files:
|
132
|
+
- spec/runner.rb
|
133
|
+
has_rdoc:
|
data/.gitignore
DELETED
data/.runrc
DELETED
data/.rvmrc
DELETED
data/CHANGES
DELETED
@@ -1,266 +0,0 @@
|
|
1
|
-
1.0.3
|
2
|
-
- Eliminate usage of ObjectSpace._id2ref (Patch Evan Phoenix)
|
3
|
-
- Added minitest adapter (Patch Caleb Spare)
|
4
|
-
- Added instructions on installing the gem (Patch Gavin Miller)
|
5
|
-
- delete missing scratch.rb file from gemspec (Patch bonkydog)
|
6
|
-
|
7
|
-
1.0.2
|
8
|
-
- Fixed Two calls recorded to a mock expecting only one call when called via another mock's yield block (http://github.com/btakita/rr/issues/closed#issue/42). Patch by Eugene Pimenov (http://github.com/libc).
|
9
|
-
|
10
|
-
1.0.1
|
11
|
-
- Removed new_instance_of for Ruby 1.9.2 compatibility. instance_of is now an alias for any_instance_of.
|
12
|
-
- Compatible with Ruby 1.9.2
|
13
|
-
|
14
|
-
1.0.0
|
15
|
-
- Added any_instance_of (aliased by all_instances_of), which binds methods directly to the class (instead of the eigenclass).
|
16
|
-
- Subclasses of a injected class do not have their methods overridden.
|
17
|
-
- any_instance_of and new_instance_of now have a block syntax
|
18
|
-
|
19
|
-
0.10.11
|
20
|
-
- Added RR.blank_slate_whitelist
|
21
|
-
- Fixed class_eval method redefinition warning in jruby
|
22
|
-
|
23
|
-
0.10.10
|
24
|
-
- Suite passes for Ruby 1.9.1
|
25
|
-
|
26
|
-
0.10.9
|
27
|
-
- Fixed 1.8.6 bug for real
|
28
|
-
|
29
|
-
0.10.8
|
30
|
-
- Fixed 1.8.6 bug
|
31
|
-
|
32
|
-
0.10.7
|
33
|
-
- Fixed issue with DoubleInjections binding to objects overriding the method method.
|
34
|
-
|
35
|
-
0.10.6
|
36
|
-
- Added MIT license
|
37
|
-
- Fixed Bug - dont_allow doesn't work when it follows stub (http://github.com/btakita/rr/issues#issue/20)
|
38
|
-
- Fixed exception with DoubleInjections on proxy objects (http://github.com/btakita/rr/issues#issue/24)
|
39
|
-
- Fixed Bug - Can't stub attribute methods on a BelongsToAssociation (http://github.com/btakita/rr/issues#issue/24)
|
40
|
-
|
41
|
-
0.10.5
|
42
|
-
- Fixed stack overflow caused by double include in Test::Unit adapter [http://github.com/btakita/rr/issues#issue/16]. Identified by Dave Myron (http://github.com/contentfree)
|
43
|
-
- Fixed warnings (Patch by Bryan Helmkamp)
|
44
|
-
|
45
|
-
0.10.4
|
46
|
-
- Handle lazily defined methods (where respond_to? returns true yet the method is not yet defined and the first call to method_missing defines the method). This pattern is used in ActiveRecord and ActionMailer.
|
47
|
-
- Fixed warning about aliasing #instance_exec in jruby. http://github.com/btakita/rr/issues#issue/9 (Patch by Nathan Sobo)
|
48
|
-
|
49
|
-
0.10.2
|
50
|
-
- RR properly proxies subjects with private methods [http://github.com/btakita/rr/issues/#issue/7]. Identified by Matthew O'Connor.
|
51
|
-
|
52
|
-
0.10.1
|
53
|
-
- Fixed issue with DoubleInjection not invoking methods that are lazily created [http://github.com/btakita/rr/issues/#issue/4]. Identified by davidlee (http://github.com/davidlee)
|
54
|
-
- Fixed issue with mock.proxy and returns [http://github.com/btakita/rr/issues/#issue/2]. Identified by trogdoro (http://github.com/trogdoro)
|
55
|
-
|
56
|
-
* 0.10.0
|
57
|
-
- Method is no longer invoked if respond_to? returns false. This was in place to support ActiveRecord association proxies, and is no longer needed.
|
58
|
-
|
59
|
-
* 0.9.0
|
60
|
-
- instance_of Doubles now apply to methods invoked in the subject's #initialize method.
|
61
|
-
|
62
|
-
* 0.8.1
|
63
|
-
- Fixed exception where the Subject uses method delegation via method_missing (e.g. certain ActiveRecord AssociationProxy methods)
|
64
|
-
|
65
|
-
* 0.8.0
|
66
|
-
- Fixed compatability issues with Ruby 1.9
|
67
|
-
- Aliased any_number_of_times with any_times
|
68
|
-
- Better error messages for have_received and assert_received matchers (Patch by Joe Ferris)
|
69
|
-
- Better documentation on RR wilcard matchers (Patch by Phil Arnowsky)
|
70
|
-
|
71
|
-
* 0.7.1
|
72
|
-
- Performance improvements
|
73
|
-
|
74
|
-
* 0.7.0
|
75
|
-
- Added spies (Patchs by Joe Ferris, Michael Niessner & Mike Mangino)
|
76
|
-
- Added strongly typed reimplementation doubles (Patch by Michael Niessner)
|
77
|
-
|
78
|
-
* 0.6.2
|
79
|
-
- Fixed DoubleDefinition chaining edge cases
|
80
|
-
|
81
|
-
* 0.6.1
|
82
|
-
- DoubleDefinitionCreatorProxy definition eval block is instance_evaled when the arity is not 1. When the arity is 1, the block is yielded with the DoubleDefinitionCreatorProxy passed in.
|
83
|
-
|
84
|
-
* 0.6.0
|
85
|
-
- Friendlier DoubleNotFound error message
|
86
|
-
- Implemented Double strategy creation methods (#mock, #stub, #proxy, #instance_of, and ! equivalents) on DoubleDefinition
|
87
|
-
- Implemented hash_including matcher (Patch by Matthew O'Conner)
|
88
|
-
- Implemented satisfy matcher (Patch by Matthew O'Conner)
|
89
|
-
- Implemented DoubleDefinitionCreator#mock!, #stub!, and #dont_allow!
|
90
|
-
- Modified api to method chain Doubles
|
91
|
-
- Fix conflict with Mocha overriding Object#verify
|
92
|
-
|
93
|
-
* 0.5.0
|
94
|
-
- Method chaining Doubles (Patch by Nick Kallen)
|
95
|
-
- Chained ordered expectations (Patch by Nick Kallen)
|
96
|
-
- Space#verify_doubles can take one or more objects with DoubleInjections to be verified
|
97
|
-
|
98
|
-
* 0.4.10
|
99
|
-
- DoubleDefinitionCreatorProxy does not undef #object_id
|
100
|
-
- Fixed rdoc pointer to README
|
101
|
-
|
102
|
-
* 0.4.9
|
103
|
-
- Proxying from RR module to RR::Space.instance
|
104
|
-
|
105
|
-
* 0.4.8
|
106
|
-
- Fixed issue with Hash arguments
|
107
|
-
|
108
|
-
* 0.4.7
|
109
|
-
- Improved error message
|
110
|
-
|
111
|
-
* 0.4.6
|
112
|
-
- Added Double#verbose and Double#verbose?
|
113
|
-
|
114
|
-
* 0.4.5
|
115
|
-
- Fixed doubles for == and #eql? methods
|
116
|
-
|
117
|
-
* 0.4.4
|
118
|
-
- Doc improvements
|
119
|
-
- Methods that are not alphabetic, such as ==, can be doubles
|
120
|
-
|
121
|
-
* 0.4.3
|
122
|
-
- Doc improvements
|
123
|
-
- Cleanup
|
124
|
-
- Finished renaming scenario to double
|
125
|
-
|
126
|
-
* 0.4.2
|
127
|
-
- Renamed DoubleInsertion to DoubleInjection to be consistent with Mocha terminology
|
128
|
-
|
129
|
-
* 0.4.1
|
130
|
-
- Fixed backward compatability issues with rspec
|
131
|
-
- Renamed Space#verify_double_insertions to #verify_doubles
|
132
|
-
|
133
|
-
* 0.4.0
|
134
|
-
- Documentation improvements
|
135
|
-
- Renamed Double to DoubleInsertion
|
136
|
-
- Renamed Scenario to Double
|
137
|
-
|
138
|
-
* 0.3.11
|
139
|
-
- Fixed [#13724] Mock Proxy on Active Record Association proxies causes error
|
140
|
-
|
141
|
-
* 0.3.10
|
142
|
-
- Fixed [#13139] Blocks added to proxy sets the return_value and not the after_call callback
|
143
|
-
|
144
|
-
* 0.3.9
|
145
|
-
- Alias probe to proxy
|
146
|
-
|
147
|
-
* 0.3.8
|
148
|
-
- Implemented [#13009] Better error mesage from TimesCalledMatcher
|
149
|
-
|
150
|
-
* 0.3.7
|
151
|
-
- Fixed [#12928] Reset doubles fails on Rails association proxies
|
152
|
-
|
153
|
-
* 0.3.6
|
154
|
-
- Fixed [#12765] Issues with ObjectSpace._id2ref
|
155
|
-
|
156
|
-
* 0.3.5
|
157
|
-
- trim_backtrace is only set for Test::Unit
|
158
|
-
|
159
|
-
* 0.3.4
|
160
|
-
- Implemented instance_of
|
161
|
-
|
162
|
-
* 0.3.3
|
163
|
-
- Fixed [#12495] Error Probing method_missing interaction
|
164
|
-
|
165
|
-
* 0.3.2
|
166
|
-
- Fixed [#12486] ScenarioMethodProxy when Kernel passed into instance methods
|
167
|
-
|
168
|
-
* 0.3.1
|
169
|
-
- Automatically require Test::Unit and Rspec adapters
|
170
|
-
|
171
|
-
* 0.3.0
|
172
|
-
- ScenarioCreator strategy method chaining
|
173
|
-
- Removed mock_probe
|
174
|
-
- Removed stub_probe
|
175
|
-
|
176
|
-
* 0.2.5
|
177
|
-
- mock takes method_name argument
|
178
|
-
- stub takes method_name argument
|
179
|
-
- mock_probe takes method_name argument
|
180
|
-
- stub_probe takes method_name argument
|
181
|
-
- probe takes method_name argument
|
182
|
-
- dont_allow takes method_name argument
|
183
|
-
- do_not_allow takes method_name argument
|
184
|
-
|
185
|
-
* 0.2.4
|
186
|
-
- Space#doubles key is now the object id
|
187
|
-
- Fixed [#12402] Stubbing return value of probes fails after calling the stubbed method two times
|
188
|
-
|
189
|
-
* 0.2.3
|
190
|
-
- Added RRMethods#rr_verify and RRMethods#rr_reset
|
191
|
-
|
192
|
-
* 0.2.2
|
193
|
-
- Fixed "singleton method bound for a different object"
|
194
|
-
- Doing Method aliasing again to store original method
|
195
|
-
|
196
|
-
* 0.2.1
|
197
|
-
- Added mock_probe
|
198
|
-
- Added stub_probe
|
199
|
-
- Probe returns the return value of the passed in block, instead of ignoring its return value
|
200
|
-
- Scenario#after_call returns the return value of the passed in block
|
201
|
-
- Not using method aliasing to store original method
|
202
|
-
- Renamed DoubleMethods to RRMethods
|
203
|
-
- Added RRMethods#mock_probe
|
204
|
-
|
205
|
-
* 0.1.15
|
206
|
-
- Fixed [#12333] Rebinding original_methods causes blocks not to work
|
207
|
-
|
208
|
-
* 0.1.14
|
209
|
-
- Introduced concept of Terminal and NonTerminal TimesCalledMatchers
|
210
|
-
- Doubles that can be called many times can be replaced
|
211
|
-
- Terminal Scenarios are called before NonTerminal Scenarios
|
212
|
-
- Error message tweaking
|
213
|
-
- Raise error when making a Scenarios with NonTerminal TimesMatcher Ordered
|
214
|
-
|
215
|
-
* 0.1.13
|
216
|
-
- Fixed [#12290] Scenario#returns with false causes a return value of nil
|
217
|
-
|
218
|
-
* 0.1.12
|
219
|
-
- Fixed bug where Creators methods are not removed when methods are defined on Object
|
220
|
-
- Fixed [#12289] Creators methods are not removed in Rails environment
|
221
|
-
|
222
|
-
* 0.1.11
|
223
|
-
- Fixed [#12287] AtLeastMatcher does not cause Scenario to be called
|
224
|
-
|
225
|
-
* 0.1.10
|
226
|
-
- Fixed [#12286] AnyArgumentExpectation#expected_arguments not implemented
|
227
|
-
|
228
|
-
* 0.1.9
|
229
|
-
- Added DoubleMethods#any_times
|
230
|
-
- Added Scenario#any_number_of_times
|
231
|
-
|
232
|
-
* 0.1.8
|
233
|
-
- TimesCalledError Message Formatted to be on multiple lines
|
234
|
-
- ScenarioNotFoundError Message includes all Scenarios for the Double
|
235
|
-
- ScenarioOrderError shows list of remaining ordered scenarios
|
236
|
-
|
237
|
-
* 0.1.7
|
238
|
-
- Fixed [#12194] Double#reset_doubles are not clearing Ordered Scenarios bug
|
239
|
-
- Added Space#reset
|
240
|
-
- Space#reset_doubles and Space#reset_ordered_scenarios is now protected
|
241
|
-
- Added Scenario#at_least
|
242
|
-
- Added Scenario#at_most
|
243
|
-
|
244
|
-
* 0.1.6
|
245
|
-
- [#12120] probe allows a the return value to be intercepted
|
246
|
-
|
247
|
-
* 0.1.5
|
248
|
-
- TimesCalledExpectation says how many times were called and how many times called were expected on error
|
249
|
-
|
250
|
-
* 0.1.4
|
251
|
-
- TimesCalledError prints the backtrace to where the Scenario was defined when being verified
|
252
|
-
- Error message includes method name when Scenario is not found
|
253
|
-
|
254
|
-
* 0.1.3
|
255
|
-
- Fixed issue where Double#placeholder_name issues when Double method name has a ! or ?
|
256
|
-
|
257
|
-
* 0.1.2
|
258
|
-
- Scenario#returns also accepts an argument
|
259
|
-
- Implemented Scenario#yields
|
260
|
-
|
261
|
-
* 0.1.1
|
262
|
-
- Trim the backtrace for Rspec and Test::Unit
|
263
|
-
- Rspec and Test::Unit integration fixes
|
264
|
-
|
265
|
-
* 0.1.0
|
266
|
-
- Initial Release
|