rr 1.1.1.rc1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CREDITS.md +61 -0
- data/VERSION +1 -1
- data/doc/01_test_double.md +16 -0
- data/doc/02_syntax_comparison.md +96 -0
- data/doc/03_api_overview.md +616 -0
- data/rr.gemspec +6 -6
- metadata +12 -230
- data/spec/global_helper.rb +0 -53
- data/spec/spec.opts +0 -2
- data/spec/suite.rb +0 -107
- data/spec/suites/common/adapter_integration_tests.rb +0 -160
- data/spec/suites/common/adapter_tests.rb +0 -43
- data/spec/suites/common/rails_integration_tests.rb +0 -106
- data/spec/suites/common/test_unit_tests.rb +0 -21
- data/spec/suites/minitest/integration/minitest_test.rb +0 -13
- data/spec/suites/minitest/test_helper.rb +0 -7
- data/spec/suites/minitest_4/integration/minitest_test.rb +0 -13
- data/spec/suites/minitest_4/test_helper.rb +0 -7
- data/spec/suites/rspec_1/helper.rb +0 -24
- data/spec/suites/rspec_1/integration/rspec_1_spec.rb +0 -77
- data/spec/suites/rspec_1/integration/test_unit_1_spec.rb +0 -41
- data/spec/suites/rspec_1/integration/test_unit_2_spec.rb +0 -57
- data/spec/suites/rspec_1/spec_helper.rb +0 -3
- data/spec/suites/rspec_1_rails_2/integration/test_unit_1_rails_2_spec.rb +0 -53
- data/spec/suites/rspec_1_rails_2/integration/test_unit_2_rails_2_spec.rb +0 -57
- data/spec/suites/rspec_1_rails_2/spec_helper.rb +0 -3
- data/spec/suites/rspec_2/functional/any_instance_of_spec.rb +0 -47
- data/spec/suites/rspec_2/functional/dont_allow_spec.rb +0 -12
- data/spec/suites/rspec_2/functional/dsl_spec.rb +0 -13
- data/spec/suites/rspec_2/functional/instance_of_spec.rb +0 -14
- data/spec/suites/rspec_2/functional/mock_spec.rb +0 -241
- data/spec/suites/rspec_2/functional/proxy_spec.rb +0 -136
- data/spec/suites/rspec_2/functional/spy_spec.rb +0 -41
- data/spec/suites/rspec_2/functional/strong_spec.rb +0 -79
- data/spec/suites/rspec_2/functional/stub_spec.rb +0 -190
- data/spec/suites/rspec_2/functional/wildcard_matchers_spec.rb +0 -128
- data/spec/suites/rspec_2/helper.rb +0 -27
- data/spec/suites/rspec_2/integration/minitest_4_spec.rb +0 -57
- data/spec/suites/rspec_2/integration/minitest_spec.rb +0 -57
- data/spec/suites/rspec_2/integration/rspec_2_spec.rb +0 -126
- data/spec/suites/rspec_2/integration/test_unit_200_spec.rb +0 -57
- data/spec/suites/rspec_2/integration/test_unit_2_spec.rb +0 -57
- data/spec/suites/rspec_2/spec_helper.rb +0 -3
- data/spec/suites/rspec_2/support/matchers/wildcard_matcher_matchers.rb +0 -32
- data/spec/suites/rspec_2/support/shared_examples/space.rb +0 -13
- data/spec/suites/rspec_2/support/shared_examples/times_called_expectation.rb +0 -9
- data/spec/suites/rspec_2/unit/adapters/rr_methods/double_creators_spec.rb +0 -135
- data/spec/suites/rspec_2/unit/adapters/rr_methods/space_spec.rb +0 -101
- data/spec/suites/rspec_2/unit/adapters/rr_methods/wildcard_matchers_spec.rb +0 -69
- data/spec/suites/rspec_2/unit/core_ext/array_spec.rb +0 -39
- data/spec/suites/rspec_2/unit/core_ext/enumerable_spec.rb +0 -81
- data/spec/suites/rspec_2/unit/core_ext/hash_spec.rb +0 -55
- data/spec/suites/rspec_2/unit/core_ext/range_spec.rb +0 -41
- data/spec/suites/rspec_2/unit/core_ext/regexp_spec.rb +0 -41
- data/spec/suites/rspec_2/unit/double_definitions/child_double_definition_create_spec.rb +0 -114
- data/spec/suites/rspec_2/unit/double_definitions/double_definition_create_blank_slate_spec.rb +0 -93
- data/spec/suites/rspec_2/unit/double_definitions/double_definition_create_spec.rb +0 -446
- data/spec/suites/rspec_2/unit/errors/rr_error_spec.rb +0 -67
- data/spec/suites/rspec_2/unit/expectations/any_argument_expectation_spec.rb +0 -48
- data/spec/suites/rspec_2/unit/expectations/anything_argument_equality_expectation_spec.rb +0 -14
- data/spec/suites/rspec_2/unit/expectations/argument_equality_expectation_spec.rb +0 -135
- data/spec/suites/rspec_2/unit/expectations/boolean_argument_equality_expectation_spec.rb +0 -30
- data/spec/suites/rspec_2/unit/expectations/hash_including_argument_equality_expectation_spec.rb +0 -82
- data/spec/suites/rspec_2/unit/expectations/satisfy_argument_equality_expectation_spec.rb +0 -61
- data/spec/suites/rspec_2/unit/expectations/times_called_expectation/any_times_matcher_spec.rb +0 -22
- data/spec/suites/rspec_2/unit/expectations/times_called_expectation/at_least_matcher_spec.rb +0 -37
- data/spec/suites/rspec_2/unit/expectations/times_called_expectation/at_most_matcher_spec.rb +0 -43
- data/spec/suites/rspec_2/unit/expectations/times_called_expectation/integer_matcher_spec.rb +0 -58
- data/spec/suites/rspec_2/unit/expectations/times_called_expectation/proc_matcher_spec.rb +0 -35
- data/spec/suites/rspec_2/unit/expectations/times_called_expectation/range_matcher_spec.rb +0 -39
- data/spec/suites/rspec_2/unit/hash_with_object_id_key_spec.rb +0 -88
- data/spec/suites/rspec_2/unit/injections/double_injection/double_injection_spec.rb +0 -545
- data/spec/suites/rspec_2/unit/injections/double_injection/double_injection_verify_spec.rb +0 -32
- data/spec/suites/rspec_2/unit/integrations/rspec/invocation_matcher_spec.rb +0 -297
- data/spec/suites/rspec_2/unit/integrations/rspec_spec.rb +0 -85
- data/spec/suites/rspec_2/unit/proc_from_block_spec.rb +0 -14
- data/spec/suites/rspec_2/unit/rr_spec.rb +0 -28
- data/spec/suites/rspec_2/unit/space_spec.rb +0 -595
- data/spec/suites/rspec_2/unit/spy_verification_spec.rb +0 -133
- data/spec/suites/rspec_2/unit/times_called_matchers/any_times_matcher_spec.rb +0 -46
- data/spec/suites/rspec_2/unit/times_called_matchers/at_least_matcher_spec.rb +0 -54
- data/spec/suites/rspec_2/unit/times_called_matchers/at_most_matcher_spec.rb +0 -69
- data/spec/suites/rspec_2/unit/times_called_matchers/integer_matcher_spec.rb +0 -69
- data/spec/suites/rspec_2/unit/times_called_matchers/proc_matcher_spec.rb +0 -54
- data/spec/suites/rspec_2/unit/times_called_matchers/range_matcher_spec.rb +0 -75
- data/spec/suites/rspec_2/unit/times_called_matchers/times_called_matcher_spec.rb +0 -117
- data/spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb +0 -33
- data/spec/suites/rspec_2/unit/wildcard_matchers/boolean_spec.rb +0 -45
- data/spec/suites/rspec_2/unit/wildcard_matchers/duck_type_spec.rb +0 -64
- data/spec/suites/rspec_2/unit/wildcard_matchers/hash_including_spec.rb +0 -64
- data/spec/suites/rspec_2/unit/wildcard_matchers/is_a_spec.rb +0 -55
- data/spec/suites/rspec_2/unit/wildcard_matchers/numeric_spec.rb +0 -46
- data/spec/suites/rspec_2/unit/wildcard_matchers/satisfy_spec.rb +0 -57
- data/spec/suites/rspec_2_rails_3/integration/minitest_4_rails_3_spec.rb +0 -66
- data/spec/suites/rspec_2_rails_3/integration/test_unit_200_rails_3_spec.rb +0 -66
- data/spec/suites/rspec_2_rails_3/integration/test_unit_2_rails_3_spec.rb +0 -66
- data/spec/suites/rspec_2_rails_3/spec_helper.rb +0 -3
- data/spec/suites/rspec_2_rails_4/integration/minitest_4_rails_4_spec.rb +0 -66
- data/spec/suites/rspec_2_rails_4/integration/rspec_2_rails_4_spec.rb +0 -156
- data/spec/suites/rspec_2_rails_4/integration/test_unit_200_rails_4_spec.rb +0 -66
- data/spec/suites/rspec_2_rails_4/integration/test_unit_2_rails_4_spec.rb +0 -66
- data/spec/suites/rspec_2_rails_4/spec_helper.rb +0 -3
- data/spec/suites/test_unit_1/integration/test_unit_1_test.rb +0 -10
- data/spec/suites/test_unit_1/test_helper.rb +0 -10
- data/spec/suites/test_unit_2/integration/test_unit_2_test.rb +0 -10
- data/spec/suites/test_unit_2/test_helper.rb +0 -6
- data/spec/suites/test_unit_200/integration/test_unit_200_test.rb +0 -10
- data/spec/suites/test_unit_200/test_helper.rb +0 -6
- data/spec/suites/test_unit_200_rails_3/integration/test_unit_200_rails_3_test.rb +0 -10
- data/spec/suites/test_unit_200_rails_3/test_helper.rb +0 -7
- data/spec/suites/test_unit_200_rails_4/integration/test_unit_200_rails_4_test.rb +0 -10
- data/spec/suites/test_unit_200_rails_4/test_helper.rb +0 -7
- data/spec/suites/test_unit_2_rails_2/integration/test_unit_2_rails_2_test.rb +0 -10
- data/spec/suites/test_unit_2_rails_2/test_helper.rb +0 -7
- data/spec/suites/test_unit_2_rails_3/integration/test_unit_2_rails_3_test.rb +0 -10
- data/spec/suites/test_unit_2_rails_3/test_helper.rb +0 -7
- data/spec/suites/test_unit_2_rails_4/integration/test_unit_2_rails_4_test.rb +0 -10
- data/spec/suites/test_unit_2_rails_4/test_helper.rb +0 -7
data/rr.gemspec
CHANGED
@@ -8,21 +8,21 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = RR.version
|
9
9
|
gem.authors = ['Brian Takita', 'Elliot Winkler']
|
10
10
|
gem.email = ['elliot.winkler@gmail.com']
|
11
|
-
gem.description =
|
12
|
-
gem.summary =
|
13
|
-
gem.homepage =
|
14
|
-
gem.license =
|
11
|
+
gem.description = 'RR is a test double framework that features a rich selection of double techniques and a terse syntax.'
|
12
|
+
gem.summary = 'RR is a test double framework that features a rich selection of double techniques and a terse syntax.'
|
13
|
+
gem.homepage = 'http://rr.github.com/rr'
|
14
|
+
gem.license = 'MIT'
|
15
15
|
|
16
16
|
gem.files = FileList[
|
17
17
|
'CHANGES.md',
|
18
|
+
'CREDITS.md',
|
18
19
|
'LICENSE',
|
19
20
|
'README.md',
|
20
21
|
'VERSION',
|
22
|
+
'doc/*.md',
|
21
23
|
'lib/**/*.rb',
|
22
24
|
'rr.gemspec'
|
23
25
|
].to_a
|
24
26
|
|
25
|
-
gem.test_files = FileList['spec/**/*']
|
26
|
-
|
27
27
|
gem.require_paths = ['lib']
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.1
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Takita
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: RR is a double framework that features a rich selection of double
|
15
|
-
and a terse syntax.
|
14
|
+
description: RR is a test double framework that features a rich selection of double
|
15
|
+
techniques and a terse syntax.
|
16
16
|
email:
|
17
17
|
- elliot.winkler@gmail.com
|
18
18
|
executables: []
|
@@ -20,9 +20,13 @@ extensions: []
|
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
22
|
- CHANGES.md
|
23
|
+
- CREDITS.md
|
23
24
|
- LICENSE
|
24
25
|
- README.md
|
25
26
|
- VERSION
|
27
|
+
- doc/01_test_double.md
|
28
|
+
- doc/02_syntax_comparison.md
|
29
|
+
- doc/03_api_overview.md
|
26
30
|
- lib/rr.rb
|
27
31
|
- lib/rr/adapters.rb
|
28
32
|
- lib/rr/adapters/rr_methods.rb
|
@@ -117,117 +121,6 @@ files:
|
|
117
121
|
- lib/rr/wildcard_matchers/satisfy.rb
|
118
122
|
- lib/rr/without_autohook.rb
|
119
123
|
- rr.gemspec
|
120
|
-
- spec/global_helper.rb
|
121
|
-
- spec/spec.opts
|
122
|
-
- spec/suite.rb
|
123
|
-
- spec/suites/common/adapter_integration_tests.rb
|
124
|
-
- spec/suites/common/adapter_tests.rb
|
125
|
-
- spec/suites/common/rails_integration_tests.rb
|
126
|
-
- spec/suites/common/test_unit_tests.rb
|
127
|
-
- spec/suites/minitest/integration/minitest_test.rb
|
128
|
-
- spec/suites/minitest/test_helper.rb
|
129
|
-
- spec/suites/minitest_4/integration/minitest_test.rb
|
130
|
-
- spec/suites/minitest_4/test_helper.rb
|
131
|
-
- spec/suites/rspec_1/helper.rb
|
132
|
-
- spec/suites/rspec_1/integration/rspec_1_spec.rb
|
133
|
-
- spec/suites/rspec_1/integration/test_unit_1_spec.rb
|
134
|
-
- spec/suites/rspec_1/integration/test_unit_2_spec.rb
|
135
|
-
- spec/suites/rspec_1/spec_helper.rb
|
136
|
-
- spec/suites/rspec_1_rails_2/integration/test_unit_1_rails_2_spec.rb
|
137
|
-
- spec/suites/rspec_1_rails_2/integration/test_unit_2_rails_2_spec.rb
|
138
|
-
- spec/suites/rspec_1_rails_2/spec_helper.rb
|
139
|
-
- spec/suites/rspec_2/functional/any_instance_of_spec.rb
|
140
|
-
- spec/suites/rspec_2/functional/dont_allow_spec.rb
|
141
|
-
- spec/suites/rspec_2/functional/dsl_spec.rb
|
142
|
-
- spec/suites/rspec_2/functional/instance_of_spec.rb
|
143
|
-
- spec/suites/rspec_2/functional/mock_spec.rb
|
144
|
-
- spec/suites/rspec_2/functional/proxy_spec.rb
|
145
|
-
- spec/suites/rspec_2/functional/spy_spec.rb
|
146
|
-
- spec/suites/rspec_2/functional/strong_spec.rb
|
147
|
-
- spec/suites/rspec_2/functional/stub_spec.rb
|
148
|
-
- spec/suites/rspec_2/functional/wildcard_matchers_spec.rb
|
149
|
-
- spec/suites/rspec_2/helper.rb
|
150
|
-
- spec/suites/rspec_2/integration/minitest_4_spec.rb
|
151
|
-
- spec/suites/rspec_2/integration/minitest_spec.rb
|
152
|
-
- spec/suites/rspec_2/integration/rspec_2_spec.rb
|
153
|
-
- spec/suites/rspec_2/integration/test_unit_200_spec.rb
|
154
|
-
- spec/suites/rspec_2/integration/test_unit_2_spec.rb
|
155
|
-
- spec/suites/rspec_2/spec_helper.rb
|
156
|
-
- spec/suites/rspec_2/support/matchers/wildcard_matcher_matchers.rb
|
157
|
-
- spec/suites/rspec_2/support/shared_examples/space.rb
|
158
|
-
- spec/suites/rspec_2/support/shared_examples/times_called_expectation.rb
|
159
|
-
- spec/suites/rspec_2/unit/adapters/rr_methods/double_creators_spec.rb
|
160
|
-
- spec/suites/rspec_2/unit/adapters/rr_methods/space_spec.rb
|
161
|
-
- spec/suites/rspec_2/unit/adapters/rr_methods/wildcard_matchers_spec.rb
|
162
|
-
- spec/suites/rspec_2/unit/core_ext/array_spec.rb
|
163
|
-
- spec/suites/rspec_2/unit/core_ext/enumerable_spec.rb
|
164
|
-
- spec/suites/rspec_2/unit/core_ext/hash_spec.rb
|
165
|
-
- spec/suites/rspec_2/unit/core_ext/range_spec.rb
|
166
|
-
- spec/suites/rspec_2/unit/core_ext/regexp_spec.rb
|
167
|
-
- spec/suites/rspec_2/unit/double_definitions/child_double_definition_create_spec.rb
|
168
|
-
- spec/suites/rspec_2/unit/double_definitions/double_definition_create_blank_slate_spec.rb
|
169
|
-
- spec/suites/rspec_2/unit/double_definitions/double_definition_create_spec.rb
|
170
|
-
- spec/suites/rspec_2/unit/errors/rr_error_spec.rb
|
171
|
-
- spec/suites/rspec_2/unit/expectations/any_argument_expectation_spec.rb
|
172
|
-
- spec/suites/rspec_2/unit/expectations/anything_argument_equality_expectation_spec.rb
|
173
|
-
- spec/suites/rspec_2/unit/expectations/argument_equality_expectation_spec.rb
|
174
|
-
- spec/suites/rspec_2/unit/expectations/boolean_argument_equality_expectation_spec.rb
|
175
|
-
- spec/suites/rspec_2/unit/expectations/hash_including_argument_equality_expectation_spec.rb
|
176
|
-
- spec/suites/rspec_2/unit/expectations/satisfy_argument_equality_expectation_spec.rb
|
177
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/any_times_matcher_spec.rb
|
178
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/at_least_matcher_spec.rb
|
179
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/at_most_matcher_spec.rb
|
180
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/integer_matcher_spec.rb
|
181
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/proc_matcher_spec.rb
|
182
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/range_matcher_spec.rb
|
183
|
-
- spec/suites/rspec_2/unit/hash_with_object_id_key_spec.rb
|
184
|
-
- spec/suites/rspec_2/unit/injections/double_injection/double_injection_spec.rb
|
185
|
-
- spec/suites/rspec_2/unit/injections/double_injection/double_injection_verify_spec.rb
|
186
|
-
- spec/suites/rspec_2/unit/integrations/rspec/invocation_matcher_spec.rb
|
187
|
-
- spec/suites/rspec_2/unit/integrations/rspec_spec.rb
|
188
|
-
- spec/suites/rspec_2/unit/proc_from_block_spec.rb
|
189
|
-
- spec/suites/rspec_2/unit/rr_spec.rb
|
190
|
-
- spec/suites/rspec_2/unit/space_spec.rb
|
191
|
-
- spec/suites/rspec_2/unit/spy_verification_spec.rb
|
192
|
-
- spec/suites/rspec_2/unit/times_called_matchers/any_times_matcher_spec.rb
|
193
|
-
- spec/suites/rspec_2/unit/times_called_matchers/at_least_matcher_spec.rb
|
194
|
-
- spec/suites/rspec_2/unit/times_called_matchers/at_most_matcher_spec.rb
|
195
|
-
- spec/suites/rspec_2/unit/times_called_matchers/integer_matcher_spec.rb
|
196
|
-
- spec/suites/rspec_2/unit/times_called_matchers/proc_matcher_spec.rb
|
197
|
-
- spec/suites/rspec_2/unit/times_called_matchers/range_matcher_spec.rb
|
198
|
-
- spec/suites/rspec_2/unit/times_called_matchers/times_called_matcher_spec.rb
|
199
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
|
200
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/boolean_spec.rb
|
201
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/duck_type_spec.rb
|
202
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/hash_including_spec.rb
|
203
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/is_a_spec.rb
|
204
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/numeric_spec.rb
|
205
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/satisfy_spec.rb
|
206
|
-
- spec/suites/rspec_2_rails_3/integration/minitest_4_rails_3_spec.rb
|
207
|
-
- spec/suites/rspec_2_rails_3/integration/test_unit_200_rails_3_spec.rb
|
208
|
-
- spec/suites/rspec_2_rails_3/integration/test_unit_2_rails_3_spec.rb
|
209
|
-
- spec/suites/rspec_2_rails_3/spec_helper.rb
|
210
|
-
- spec/suites/rspec_2_rails_4/integration/minitest_4_rails_4_spec.rb
|
211
|
-
- spec/suites/rspec_2_rails_4/integration/rspec_2_rails_4_spec.rb
|
212
|
-
- spec/suites/rspec_2_rails_4/integration/test_unit_200_rails_4_spec.rb
|
213
|
-
- spec/suites/rspec_2_rails_4/integration/test_unit_2_rails_4_spec.rb
|
214
|
-
- spec/suites/rspec_2_rails_4/spec_helper.rb
|
215
|
-
- spec/suites/test_unit_1/integration/test_unit_1_test.rb
|
216
|
-
- spec/suites/test_unit_1/test_helper.rb
|
217
|
-
- spec/suites/test_unit_2/integration/test_unit_2_test.rb
|
218
|
-
- spec/suites/test_unit_2/test_helper.rb
|
219
|
-
- spec/suites/test_unit_200/integration/test_unit_200_test.rb
|
220
|
-
- spec/suites/test_unit_200/test_helper.rb
|
221
|
-
- spec/suites/test_unit_200_rails_3/integration/test_unit_200_rails_3_test.rb
|
222
|
-
- spec/suites/test_unit_200_rails_3/test_helper.rb
|
223
|
-
- spec/suites/test_unit_200_rails_4/integration/test_unit_200_rails_4_test.rb
|
224
|
-
- spec/suites/test_unit_200_rails_4/test_helper.rb
|
225
|
-
- spec/suites/test_unit_2_rails_2/integration/test_unit_2_rails_2_test.rb
|
226
|
-
- spec/suites/test_unit_2_rails_2/test_helper.rb
|
227
|
-
- spec/suites/test_unit_2_rails_3/integration/test_unit_2_rails_3_test.rb
|
228
|
-
- spec/suites/test_unit_2_rails_3/test_helper.rb
|
229
|
-
- spec/suites/test_unit_2_rails_4/integration/test_unit_2_rails_4_test.rb
|
230
|
-
- spec/suites/test_unit_2_rails_4/test_helper.rb
|
231
124
|
homepage: http://rr.github.com/rr
|
232
125
|
licenses:
|
233
126
|
- MIT
|
@@ -243,125 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
136
|
version: '0'
|
244
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
138
|
requirements:
|
246
|
-
- - '
|
139
|
+
- - '>='
|
247
140
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
141
|
+
version: '0'
|
249
142
|
requirements: []
|
250
143
|
rubyforge_project:
|
251
144
|
rubygems_version: 2.0.0
|
252
145
|
signing_key:
|
253
146
|
specification_version: 4
|
254
|
-
summary: RR is a double framework that features a rich selection of double techniques
|
147
|
+
summary: RR is a test double framework that features a rich selection of double techniques
|
255
148
|
and a terse syntax.
|
256
|
-
test_files:
|
257
|
-
- spec/global_helper.rb
|
258
|
-
- spec/spec.opts
|
259
|
-
- spec/suite.rb
|
260
|
-
- spec/suites/common/adapter_integration_tests.rb
|
261
|
-
- spec/suites/common/adapter_tests.rb
|
262
|
-
- spec/suites/common/rails_integration_tests.rb
|
263
|
-
- spec/suites/common/test_unit_tests.rb
|
264
|
-
- spec/suites/minitest/integration/minitest_test.rb
|
265
|
-
- spec/suites/minitest/test_helper.rb
|
266
|
-
- spec/suites/minitest_4/integration/minitest_test.rb
|
267
|
-
- spec/suites/minitest_4/test_helper.rb
|
268
|
-
- spec/suites/rspec_1/helper.rb
|
269
|
-
- spec/suites/rspec_1/integration/rspec_1_spec.rb
|
270
|
-
- spec/suites/rspec_1/integration/test_unit_1_spec.rb
|
271
|
-
- spec/suites/rspec_1/integration/test_unit_2_spec.rb
|
272
|
-
- spec/suites/rspec_1/spec_helper.rb
|
273
|
-
- spec/suites/rspec_1_rails_2/integration/test_unit_1_rails_2_spec.rb
|
274
|
-
- spec/suites/rspec_1_rails_2/integration/test_unit_2_rails_2_spec.rb
|
275
|
-
- spec/suites/rspec_1_rails_2/spec_helper.rb
|
276
|
-
- spec/suites/rspec_2/functional/any_instance_of_spec.rb
|
277
|
-
- spec/suites/rspec_2/functional/dont_allow_spec.rb
|
278
|
-
- spec/suites/rspec_2/functional/dsl_spec.rb
|
279
|
-
- spec/suites/rspec_2/functional/instance_of_spec.rb
|
280
|
-
- spec/suites/rspec_2/functional/mock_spec.rb
|
281
|
-
- spec/suites/rspec_2/functional/proxy_spec.rb
|
282
|
-
- spec/suites/rspec_2/functional/spy_spec.rb
|
283
|
-
- spec/suites/rspec_2/functional/strong_spec.rb
|
284
|
-
- spec/suites/rspec_2/functional/stub_spec.rb
|
285
|
-
- spec/suites/rspec_2/functional/wildcard_matchers_spec.rb
|
286
|
-
- spec/suites/rspec_2/helper.rb
|
287
|
-
- spec/suites/rspec_2/integration/minitest_4_spec.rb
|
288
|
-
- spec/suites/rspec_2/integration/minitest_spec.rb
|
289
|
-
- spec/suites/rspec_2/integration/rspec_2_spec.rb
|
290
|
-
- spec/suites/rspec_2/integration/test_unit_200_spec.rb
|
291
|
-
- spec/suites/rspec_2/integration/test_unit_2_spec.rb
|
292
|
-
- spec/suites/rspec_2/spec_helper.rb
|
293
|
-
- spec/suites/rspec_2/support/matchers/wildcard_matcher_matchers.rb
|
294
|
-
- spec/suites/rspec_2/support/shared_examples/space.rb
|
295
|
-
- spec/suites/rspec_2/support/shared_examples/times_called_expectation.rb
|
296
|
-
- spec/suites/rspec_2/unit/adapters/rr_methods/double_creators_spec.rb
|
297
|
-
- spec/suites/rspec_2/unit/adapters/rr_methods/space_spec.rb
|
298
|
-
- spec/suites/rspec_2/unit/adapters/rr_methods/wildcard_matchers_spec.rb
|
299
|
-
- spec/suites/rspec_2/unit/core_ext/array_spec.rb
|
300
|
-
- spec/suites/rspec_2/unit/core_ext/enumerable_spec.rb
|
301
|
-
- spec/suites/rspec_2/unit/core_ext/hash_spec.rb
|
302
|
-
- spec/suites/rspec_2/unit/core_ext/range_spec.rb
|
303
|
-
- spec/suites/rspec_2/unit/core_ext/regexp_spec.rb
|
304
|
-
- spec/suites/rspec_2/unit/double_definitions/child_double_definition_create_spec.rb
|
305
|
-
- spec/suites/rspec_2/unit/double_definitions/double_definition_create_blank_slate_spec.rb
|
306
|
-
- spec/suites/rspec_2/unit/double_definitions/double_definition_create_spec.rb
|
307
|
-
- spec/suites/rspec_2/unit/errors/rr_error_spec.rb
|
308
|
-
- spec/suites/rspec_2/unit/expectations/any_argument_expectation_spec.rb
|
309
|
-
- spec/suites/rspec_2/unit/expectations/anything_argument_equality_expectation_spec.rb
|
310
|
-
- spec/suites/rspec_2/unit/expectations/argument_equality_expectation_spec.rb
|
311
|
-
- spec/suites/rspec_2/unit/expectations/boolean_argument_equality_expectation_spec.rb
|
312
|
-
- spec/suites/rspec_2/unit/expectations/hash_including_argument_equality_expectation_spec.rb
|
313
|
-
- spec/suites/rspec_2/unit/expectations/satisfy_argument_equality_expectation_spec.rb
|
314
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/any_times_matcher_spec.rb
|
315
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/at_least_matcher_spec.rb
|
316
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/at_most_matcher_spec.rb
|
317
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/integer_matcher_spec.rb
|
318
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/proc_matcher_spec.rb
|
319
|
-
- spec/suites/rspec_2/unit/expectations/times_called_expectation/range_matcher_spec.rb
|
320
|
-
- spec/suites/rspec_2/unit/hash_with_object_id_key_spec.rb
|
321
|
-
- spec/suites/rspec_2/unit/injections/double_injection/double_injection_spec.rb
|
322
|
-
- spec/suites/rspec_2/unit/injections/double_injection/double_injection_verify_spec.rb
|
323
|
-
- spec/suites/rspec_2/unit/integrations/rspec/invocation_matcher_spec.rb
|
324
|
-
- spec/suites/rspec_2/unit/integrations/rspec_spec.rb
|
325
|
-
- spec/suites/rspec_2/unit/proc_from_block_spec.rb
|
326
|
-
- spec/suites/rspec_2/unit/rr_spec.rb
|
327
|
-
- spec/suites/rspec_2/unit/space_spec.rb
|
328
|
-
- spec/suites/rspec_2/unit/spy_verification_spec.rb
|
329
|
-
- spec/suites/rspec_2/unit/times_called_matchers/any_times_matcher_spec.rb
|
330
|
-
- spec/suites/rspec_2/unit/times_called_matchers/at_least_matcher_spec.rb
|
331
|
-
- spec/suites/rspec_2/unit/times_called_matchers/at_most_matcher_spec.rb
|
332
|
-
- spec/suites/rspec_2/unit/times_called_matchers/integer_matcher_spec.rb
|
333
|
-
- spec/suites/rspec_2/unit/times_called_matchers/proc_matcher_spec.rb
|
334
|
-
- spec/suites/rspec_2/unit/times_called_matchers/range_matcher_spec.rb
|
335
|
-
- spec/suites/rspec_2/unit/times_called_matchers/times_called_matcher_spec.rb
|
336
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
|
337
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/boolean_spec.rb
|
338
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/duck_type_spec.rb
|
339
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/hash_including_spec.rb
|
340
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/is_a_spec.rb
|
341
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/numeric_spec.rb
|
342
|
-
- spec/suites/rspec_2/unit/wildcard_matchers/satisfy_spec.rb
|
343
|
-
- spec/suites/rspec_2_rails_3/integration/minitest_4_rails_3_spec.rb
|
344
|
-
- spec/suites/rspec_2_rails_3/integration/test_unit_200_rails_3_spec.rb
|
345
|
-
- spec/suites/rspec_2_rails_3/integration/test_unit_2_rails_3_spec.rb
|
346
|
-
- spec/suites/rspec_2_rails_3/spec_helper.rb
|
347
|
-
- spec/suites/rspec_2_rails_4/integration/minitest_4_rails_4_spec.rb
|
348
|
-
- spec/suites/rspec_2_rails_4/integration/rspec_2_rails_4_spec.rb
|
349
|
-
- spec/suites/rspec_2_rails_4/integration/test_unit_200_rails_4_spec.rb
|
350
|
-
- spec/suites/rspec_2_rails_4/integration/test_unit_2_rails_4_spec.rb
|
351
|
-
- spec/suites/rspec_2_rails_4/spec_helper.rb
|
352
|
-
- spec/suites/test_unit_1/integration/test_unit_1_test.rb
|
353
|
-
- spec/suites/test_unit_1/test_helper.rb
|
354
|
-
- spec/suites/test_unit_2/integration/test_unit_2_test.rb
|
355
|
-
- spec/suites/test_unit_2/test_helper.rb
|
356
|
-
- spec/suites/test_unit_200/integration/test_unit_200_test.rb
|
357
|
-
- spec/suites/test_unit_200/test_helper.rb
|
358
|
-
- spec/suites/test_unit_200_rails_3/integration/test_unit_200_rails_3_test.rb
|
359
|
-
- spec/suites/test_unit_200_rails_3/test_helper.rb
|
360
|
-
- spec/suites/test_unit_200_rails_4/integration/test_unit_200_rails_4_test.rb
|
361
|
-
- spec/suites/test_unit_200_rails_4/test_helper.rb
|
362
|
-
- spec/suites/test_unit_2_rails_2/integration/test_unit_2_rails_2_test.rb
|
363
|
-
- spec/suites/test_unit_2_rails_2/test_helper.rb
|
364
|
-
- spec/suites/test_unit_2_rails_3/integration/test_unit_2_rails_3_test.rb
|
365
|
-
- spec/suites/test_unit_2_rails_3/test_helper.rb
|
366
|
-
- spec/suites/test_unit_2_rails_4/integration/test_unit_2_rails_4_test.rb
|
367
|
-
- spec/suites/test_unit_2_rails_4/test_helper.rb
|
149
|
+
test_files: []
|
data/spec/global_helper.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'pp'
|
2
|
-
require 'rubygems'
|
3
|
-
require 'appraisal/file'
|
4
|
-
require 'bundler'
|
5
|
-
|
6
|
-
if ENV['COVERAGE']
|
7
|
-
require 'simplecov'
|
8
|
-
SimpleCov.start
|
9
|
-
end
|
10
|
-
|
11
|
-
module RR
|
12
|
-
module Test
|
13
|
-
class Adapter
|
14
|
-
attr_reader :name
|
15
|
-
|
16
|
-
def initialize(name)
|
17
|
-
@name = name
|
18
|
-
end
|
19
|
-
|
20
|
-
def appraisal_name
|
21
|
-
parts = []
|
22
|
-
parts << (RUBY_VERSION =~ /^1\.8/ ? 'ruby_18' : 'ruby_19')
|
23
|
-
parts << name
|
24
|
-
parts.join('_')
|
25
|
-
end
|
26
|
-
|
27
|
-
def appraisal
|
28
|
-
@appraisal ||= Appraisal::File.new.appraisals.find do |appraisal|
|
29
|
-
appraisal.name == appraisal_name
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.setup_test_suite(adapter_name)
|
35
|
-
puts "Setting up test suite for #{adapter_name}" if ENV['RR_DEBUG']
|
36
|
-
unset_bundler_vars
|
37
|
-
adapter = Adapter.new(adapter_name)
|
38
|
-
ENV['ADAPTER'] = adapter.name.to_s
|
39
|
-
puts "Using appraisal: #{adapter.appraisal.name}" if ENV['RR_DEBUG']
|
40
|
-
ENV['BUNDLE_GEMFILE'] = adapter.appraisal.gemfile_path
|
41
|
-
puts "Using gemfile: #{adapter.appraisal.gemfile_path}" if ENV['RR_DEBUG']
|
42
|
-
Bundler.setup(:default)
|
43
|
-
$:.unshift File.expand_path('../../lib', __FILE__)
|
44
|
-
end
|
45
|
-
|
46
|
-
def self.unset_bundler_vars
|
47
|
-
# Copied from appraisal
|
48
|
-
%w(RUBYOPT BUNDLE_PATH BUNDLE_BIN_PATH BUNDLE_GEMFILE).each do |name|
|
49
|
-
ENV[name] = nil
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
data/spec/spec.opts
DELETED
data/spec/suite.rb
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
require 'session'
|
2
|
-
|
3
|
-
class SpecSuite
|
4
|
-
def self.def_runner(runner_name, runner_desc, program_name, suffix, opts={}, &block)
|
5
|
-
adapter_name = opts[:adapter] || runner_name
|
6
|
-
path = opts[:path] || runner_name
|
7
|
-
env = opts[:env] || {}
|
8
|
-
args = opts[:args] || ""
|
9
|
-
runner_method = "run_#{runner_name}"
|
10
|
-
define_method(runner_method) do
|
11
|
-
run_command(build_command(program_name, adapter_name, path, suffix, env, args))
|
12
|
-
end
|
13
|
-
runners << [runner_name, runner_desc]
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.runners
|
17
|
-
@runners ||= []
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.ruby_18?
|
21
|
-
RUBY_VERSION =~ /^1\.8/
|
22
|
-
end
|
23
|
-
|
24
|
-
def define_tasks(ctx)
|
25
|
-
suite = self
|
26
|
-
|
27
|
-
SpecSuite.runners.each do |runner_name, runner_desc|
|
28
|
-
runner_method = "run_#{runner_name}"
|
29
|
-
|
30
|
-
ctx.__send__ :desc, "Run #{runner_desc} tests"
|
31
|
-
ctx.__send__ :task, :"spec:#{runner_name}" do
|
32
|
-
session = suite.__send__(runner_method)
|
33
|
-
if session.exit_status != 0
|
34
|
-
raise "#{runner_desc} suite failed"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
ctx.__send__ :desc, "Run all tests"
|
40
|
-
ctx.__send__ :task, :spec do
|
41
|
-
sessions = []
|
42
|
-
SpecSuite.runners.each do |runner_name, runner_desc|
|
43
|
-
puts "=== Running #{runner_desc} tests ================================================"
|
44
|
-
runner_method = "run_#{runner_name}"
|
45
|
-
sessions << suite.__send__(runner_method)
|
46
|
-
puts
|
47
|
-
end
|
48
|
-
if sessions.any? {|session| session.exit_status != 0 }
|
49
|
-
raise "Spec suite failed"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
if ruby_18?
|
55
|
-
def_runner :test_unit_1, 'Test::Unit 1', 'ruby', 'test'
|
56
|
-
end
|
57
|
-
|
58
|
-
if ruby_18?
|
59
|
-
def_runner :test_unit_2, 'Test::Unit 2.4.x', 'ruby', 'test'
|
60
|
-
def_runner :test_unit_2_rails_2, 'Test::Unit 2.4.x + Rails 2', 'ruby', 'test'
|
61
|
-
else
|
62
|
-
def_runner :test_unit_200, 'Test::Unit 2.0.0', 'ruby', 'test'
|
63
|
-
def_runner :test_unit_200_rails_3, 'Test::Unit 2.0.0 + Rails 3', 'ruby', 'test'
|
64
|
-
def_runner :test_unit_2, 'Test::Unit >= 2.5', 'ruby', 'test'
|
65
|
-
def_runner :test_unit_2_rails_3, 'Test::Unit >= 2.5 + Rails 3', 'ruby', 'test'
|
66
|
-
def_runner :test_unit_2_rails_4, 'Test::Unit >= 2.5 + Rails 4', 'ruby', 'test'
|
67
|
-
end
|
68
|
-
|
69
|
-
unless ruby_18?
|
70
|
-
def_runner :minitest_4, 'MiniTest 4', 'ruby', 'test'
|
71
|
-
def_runner :minitest, 'Minitest', 'ruby', 'test'
|
72
|
-
end
|
73
|
-
|
74
|
-
if ruby_18?
|
75
|
-
def_runner :rspec_1, 'RSpec 1', 'spec', 'spec',
|
76
|
-
:args => '--format progress'
|
77
|
-
def_runner :rspec_1_rails_2, 'RSpec 1 + Rails 2', 'spec', 'spec',
|
78
|
-
:args => '--format progress'
|
79
|
-
else
|
80
|
-
def_runner :rspec_2, 'RSpec 2', 'rspec', 'spec',
|
81
|
-
:env => {'SPEC_OPTS' => '--format progress'}
|
82
|
-
def_runner :rspec_2_rails_3, 'RSpec 2 + Rails 3', 'rspec', 'spec',
|
83
|
-
:env => {'SPEC_OPTS' => '--format progress'}
|
84
|
-
def_runner :rspec_2_rails_4, 'RSpec 2 + Rails 4', 'rspec', 'spec',
|
85
|
-
:env => {'SPEC_OPTS' => '--format progress'}
|
86
|
-
end
|
87
|
-
|
88
|
-
private
|
89
|
-
|
90
|
-
def run_command(*parts)
|
91
|
-
session = Session::Bash.new
|
92
|
-
command = parts.join(" ")
|
93
|
-
session.execute command, :out => STDOUT, :err => STDERR
|
94
|
-
session
|
95
|
-
end
|
96
|
-
|
97
|
-
def build_command(program_name, adapter_name, path, suffix, env, args)
|
98
|
-
env = env.merge('ADAPTER' => adapter_name)
|
99
|
-
env.each {|k,v| ENV[k.to_s] = v.to_s }
|
100
|
-
file_list = build_file_list(path, suffix)
|
101
|
-
['ruby'] + file_list + [args]
|
102
|
-
end
|
103
|
-
|
104
|
-
def build_file_list(adapter_name, suffix)
|
105
|
-
Dir[ File.expand_path("../suites/#{adapter_name}/{.,*,**}/*_#{suffix}.rb", __FILE__) ]
|
106
|
-
end
|
107
|
-
end
|