rr 1.1.0 → 1.1.1.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +138 -102
  3. data/README.md +27 -23
  4. data/VERSION +1 -1
  5. data/lib/rr/adapters.rb +2 -19
  6. data/lib/rr/autohook.rb +3 -29
  7. data/lib/rr/integrations.rb +44 -2
  8. data/lib/rr/integrations/decorator.rb +40 -0
  9. data/lib/rr/integrations/minitest.rb +2 -0
  10. data/lib/rr/integrations/minitest_4.rb +3 -0
  11. data/lib/rr/integrations/minitest_4_active_support.rb +2 -0
  12. data/lib/rr/integrations/minitest_active_support.rb +2 -0
  13. data/lib/rr/integrations/rspec_1.rb +5 -1
  14. data/lib/rr/integrations/rspec_2.rb +5 -1
  15. data/lib/rr/integrations/test_unit_1.rb +11 -2
  16. data/lib/rr/integrations/test_unit_2.rb +3 -1
  17. data/lib/rr/integrations/test_unit_200.rb +27 -0
  18. data/lib/rr/integrations/test_unit_200_active_support.rb +25 -0
  19. data/lib/rr/integrations/test_unit_2_active_support.rb +6 -3
  20. data/lib/rr/without_autohook.rb +10 -4
  21. data/spec/global_helper.rb +45 -4
  22. data/spec/spec.opts +2 -0
  23. data/spec/suite.rb +23 -7
  24. data/spec/suites/common/adapter_integration_tests.rb +94 -31
  25. data/spec/suites/common/adapter_tests.rb +6 -0
  26. data/spec/suites/common/{rails_integration_test.rb → rails_integration_tests.rb} +40 -58
  27. data/spec/suites/minitest/integration/minitest_test.rb +5 -5
  28. data/spec/suites/minitest/test_helper.rb +5 -1
  29. data/spec/suites/minitest_4/integration/minitest_test.rb +13 -0
  30. data/spec/suites/minitest_4/test_helper.rb +7 -0
  31. data/spec/suites/rspec_1/helper.rb +24 -0
  32. data/spec/suites/rspec_1/integration/rspec_1_spec.rb +20 -18
  33. data/spec/suites/rspec_1/integration/test_unit_1_spec.rb +10 -14
  34. data/spec/suites/rspec_1/integration/test_unit_2_spec.rb +11 -18
  35. data/spec/suites/rspec_1/spec_helper.rb +2 -23
  36. data/spec/suites/{rspec_1/integration/test_unit_1_rails_spec.rb → rspec_1_rails_2/integration/test_unit_1_rails_2_spec.rb} +15 -16
  37. data/spec/suites/rspec_1_rails_2/integration/test_unit_2_rails_2_spec.rb +57 -0
  38. data/spec/suites/rspec_1_rails_2/spec_helper.rb +3 -0
  39. data/spec/suites/rspec_2/helper.rb +27 -0
  40. data/spec/suites/rspec_2/integration/minitest_4_spec.rb +8 -18
  41. data/spec/suites/rspec_2/integration/minitest_spec.rb +8 -10
  42. data/spec/suites/rspec_2/integration/rspec_2_spec.rb +22 -21
  43. data/spec/suites/rspec_2/integration/test_unit_200_spec.rb +57 -0
  44. data/spec/suites/rspec_2/integration/{test_unit_spec.rb → test_unit_2_spec.rb} +9 -11
  45. data/spec/suites/rspec_2/spec_helper.rb +2 -26
  46. data/spec/suites/{rspec_2/integration/minitest_4_rails_spec.rb → rspec_2_rails_3/integration/minitest_4_rails_3_spec.rb} +12 -18
  47. data/spec/suites/{rspec_2/integration/test_unit_rails_spec.rb → rspec_2_rails_3/integration/test_unit_200_rails_3_spec.rb} +16 -18
  48. data/spec/suites/{rspec_1/integration/test_unit_2_rails_spec.rb → rspec_2_rails_3/integration/test_unit_2_rails_3_spec.rb} +19 -28
  49. data/spec/suites/rspec_2_rails_3/spec_helper.rb +3 -0
  50. data/spec/suites/{rspec_2/integration/minitest_rails_spec.rb → rspec_2_rails_4/integration/minitest_4_rails_4_spec.rb} +14 -16
  51. data/spec/suites/rspec_2_rails_4/integration/rspec_2_rails_4_spec.rb +156 -0
  52. data/spec/suites/rspec_2_rails_4/integration/test_unit_200_rails_4_spec.rb +66 -0
  53. data/spec/suites/rspec_2_rails_4/integration/test_unit_2_rails_4_spec.rb +66 -0
  54. data/spec/suites/rspec_2_rails_4/spec_helper.rb +3 -0
  55. data/spec/suites/test_unit_1/integration/test_unit_1_test.rb +4 -0
  56. data/spec/suites/test_unit_1/test_helper.rb +4 -1
  57. data/spec/suites/test_unit_2/integration/test_unit_2_test.rb +4 -0
  58. data/spec/suites/test_unit_2/test_helper.rb +5 -2
  59. data/spec/suites/test_unit_200/integration/test_unit_200_test.rb +10 -0
  60. data/spec/suites/test_unit_200/test_helper.rb +6 -0
  61. data/spec/suites/test_unit_200_rails_3/integration/test_unit_200_rails_3_test.rb +10 -0
  62. data/spec/suites/test_unit_200_rails_3/test_helper.rb +7 -0
  63. data/spec/suites/test_unit_200_rails_4/integration/test_unit_200_rails_4_test.rb +10 -0
  64. data/spec/suites/test_unit_200_rails_4/test_helper.rb +7 -0
  65. data/spec/suites/test_unit_2_rails_2/integration/test_unit_2_rails_2_test.rb +10 -0
  66. data/spec/suites/test_unit_2_rails_2/test_helper.rb +7 -0
  67. data/spec/suites/test_unit_2_rails_3/integration/test_unit_2_rails_3_test.rb +10 -0
  68. data/spec/suites/test_unit_2_rails_3/test_helper.rb +7 -0
  69. data/spec/suites/test_unit_2_rails_4/integration/test_unit_2_rails_4_test.rb +10 -0
  70. data/spec/suites/test_unit_2_rails_4/test_helper.rb +7 -0
  71. metadata +71 -19
  72. data/lib/rr/integrations/none.rb +0 -17
@@ -0,0 +1,10 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+ require File.expand_path('../../../common/test_unit_tests', __FILE__)
3
+
4
+ class TestUnit200Rails4IntegrationTest < ActiveSupport::TestCase
5
+ def applicable_adapter_names
6
+ [:TestUnit200, :TestUnit200ActiveSupport, :MiniTest4, :MiniTest4ActiveSupport]
7
+ end
8
+
9
+ include TestUnitTests
10
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path('../../../global_helper', __FILE__)
2
+ RR::Test.setup_test_suite(:test_unit_200_rails_4)
3
+
4
+ require 'test/unit'
5
+ require 'active_support/test_case'
6
+
7
+ require 'rr'
@@ -0,0 +1,10 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+ require File.expand_path('../../../common/test_unit_tests', __FILE__)
3
+
4
+ class TestUnit2Rails3IntegrationTest < ActiveSupport::TestCase
5
+ def applicable_adapter_names
6
+ [:TestUnit2, :TestUnit2ActiveSupport]
7
+ end
8
+
9
+ include TestUnitTests
10
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path('../../../global_helper', __FILE__)
2
+ RR::Test.setup_test_suite(:test_unit_2_rails_2)
3
+
4
+ require 'test/unit'
5
+ require 'active_support/test_case'
6
+
7
+ require 'rr'
@@ -0,0 +1,10 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+ require File.expand_path('../../../common/test_unit_tests', __FILE__)
3
+
4
+ class TestUnit2Rails3IntegrationTest < ActiveSupport::TestCase
5
+ def applicable_adapter_names
6
+ [:TestUnit2, :TestUnit2ActiveSupport]
7
+ end
8
+
9
+ include TestUnitTests
10
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path('../../../global_helper', __FILE__)
2
+ RR::Test.setup_test_suite(:test_unit_2_rails_3)
3
+
4
+ require 'test/unit'
5
+ require 'active_support/test_case'
6
+
7
+ require 'rr'
@@ -0,0 +1,10 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+ require File.expand_path('../../../common/test_unit_tests', __FILE__)
3
+
4
+ class TestUnit2Rails4IntegrationTest < ActiveSupport::TestCase
5
+ def applicable_adapter_names
6
+ [:TestUnit2, :TestUnit2ActiveSupport]
7
+ end
8
+
9
+ include TestUnitTests
10
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path('../../../global_helper', __FILE__)
2
+ RR::Test.setup_test_suite(:test_unit_2_rails_4)
3
+
4
+ require 'test/unit'
5
+ require 'active_support/test_case'
6
+
7
+ require 'rr'
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.0
4
+ version: 1.1.1.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Takita
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-21 00:00:00.000000000 Z
12
+ date: 2013-06-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: RR is a double framework that features a rich selection of double techniques
15
15
  and a terse syntax.
@@ -75,16 +75,18 @@ files:
75
75
  - lib/rr/injections/method_missing_injection.rb
76
76
  - lib/rr/injections/singleton_method_added_injection.rb
77
77
  - lib/rr/integrations.rb
78
+ - lib/rr/integrations/decorator.rb
78
79
  - lib/rr/integrations/minitest.rb
79
80
  - lib/rr/integrations/minitest_4.rb
80
81
  - lib/rr/integrations/minitest_4_active_support.rb
81
82
  - lib/rr/integrations/minitest_active_support.rb
82
- - lib/rr/integrations/none.rb
83
83
  - lib/rr/integrations/rspec/invocation_matcher.rb
84
84
  - lib/rr/integrations/rspec_1.rb
85
85
  - lib/rr/integrations/rspec_2.rb
86
86
  - lib/rr/integrations/test_unit_1.rb
87
87
  - lib/rr/integrations/test_unit_2.rb
88
+ - lib/rr/integrations/test_unit_200.rb
89
+ - lib/rr/integrations/test_unit_200_active_support.rb
88
90
  - lib/rr/integrations/test_unit_2_active_support.rb
89
91
  - lib/rr/method_dispatches/base_method_dispatch.rb
90
92
  - lib/rr/method_dispatches/method_dispatch.rb
@@ -116,19 +118,24 @@ files:
116
118
  - lib/rr/without_autohook.rb
117
119
  - rr.gemspec
118
120
  - spec/global_helper.rb
121
+ - spec/spec.opts
119
122
  - spec/suite.rb
120
123
  - spec/suites/common/adapter_integration_tests.rb
121
124
  - spec/suites/common/adapter_tests.rb
122
- - spec/suites/common/rails_integration_test.rb
125
+ - spec/suites/common/rails_integration_tests.rb
123
126
  - spec/suites/common/test_unit_tests.rb
124
127
  - spec/suites/minitest/integration/minitest_test.rb
125
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
126
132
  - spec/suites/rspec_1/integration/rspec_1_spec.rb
127
- - spec/suites/rspec_1/integration/test_unit_1_rails_spec.rb
128
133
  - spec/suites/rspec_1/integration/test_unit_1_spec.rb
129
- - spec/suites/rspec_1/integration/test_unit_2_rails_spec.rb
130
134
  - spec/suites/rspec_1/integration/test_unit_2_spec.rb
131
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
132
139
  - spec/suites/rspec_2/functional/any_instance_of_spec.rb
133
140
  - spec/suites/rspec_2/functional/dont_allow_spec.rb
134
141
  - spec/suites/rspec_2/functional/dsl_spec.rb
@@ -139,13 +146,12 @@ files:
139
146
  - spec/suites/rspec_2/functional/strong_spec.rb
140
147
  - spec/suites/rspec_2/functional/stub_spec.rb
141
148
  - spec/suites/rspec_2/functional/wildcard_matchers_spec.rb
142
- - spec/suites/rspec_2/integration/minitest_4_rails_spec.rb
149
+ - spec/suites/rspec_2/helper.rb
143
150
  - spec/suites/rspec_2/integration/minitest_4_spec.rb
144
- - spec/suites/rspec_2/integration/minitest_rails_spec.rb
145
151
  - spec/suites/rspec_2/integration/minitest_spec.rb
146
152
  - spec/suites/rspec_2/integration/rspec_2_spec.rb
147
- - spec/suites/rspec_2/integration/test_unit_rails_spec.rb
148
- - spec/suites/rspec_2/integration/test_unit_spec.rb
153
+ - spec/suites/rspec_2/integration/test_unit_200_spec.rb
154
+ - spec/suites/rspec_2/integration/test_unit_2_spec.rb
149
155
  - spec/suites/rspec_2/spec_helper.rb
150
156
  - spec/suites/rspec_2/support/matchers/wildcard_matcher_matchers.rb
151
157
  - spec/suites/rspec_2/support/shared_examples/space.rb
@@ -197,10 +203,31 @@ files:
197
203
  - spec/suites/rspec_2/unit/wildcard_matchers/is_a_spec.rb
198
204
  - spec/suites/rspec_2/unit/wildcard_matchers/numeric_spec.rb
199
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
200
215
  - spec/suites/test_unit_1/integration/test_unit_1_test.rb
201
216
  - spec/suites/test_unit_1/test_helper.rb
202
217
  - spec/suites/test_unit_2/integration/test_unit_2_test.rb
203
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
204
231
  homepage: http://rr.github.com/rr
205
232
  licenses:
206
233
  - MIT
@@ -216,9 +243,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
243
  version: '0'
217
244
  required_rubygems_version: !ruby/object:Gem::Requirement
218
245
  requirements:
219
- - - '>='
246
+ - - '>'
220
247
  - !ruby/object:Gem::Version
221
- version: '0'
248
+ version: 1.3.1
222
249
  requirements: []
223
250
  rubyforge_project:
224
251
  rubygems_version: 2.0.0
@@ -228,19 +255,24 @@ summary: RR is a double framework that features a rich selection of double techn
228
255
  and a terse syntax.
229
256
  test_files:
230
257
  - spec/global_helper.rb
258
+ - spec/spec.opts
231
259
  - spec/suite.rb
232
260
  - spec/suites/common/adapter_integration_tests.rb
233
261
  - spec/suites/common/adapter_tests.rb
234
- - spec/suites/common/rails_integration_test.rb
262
+ - spec/suites/common/rails_integration_tests.rb
235
263
  - spec/suites/common/test_unit_tests.rb
236
264
  - spec/suites/minitest/integration/minitest_test.rb
237
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
238
269
  - spec/suites/rspec_1/integration/rspec_1_spec.rb
239
- - spec/suites/rspec_1/integration/test_unit_1_rails_spec.rb
240
270
  - spec/suites/rspec_1/integration/test_unit_1_spec.rb
241
- - spec/suites/rspec_1/integration/test_unit_2_rails_spec.rb
242
271
  - spec/suites/rspec_1/integration/test_unit_2_spec.rb
243
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
244
276
  - spec/suites/rspec_2/functional/any_instance_of_spec.rb
245
277
  - spec/suites/rspec_2/functional/dont_allow_spec.rb
246
278
  - spec/suites/rspec_2/functional/dsl_spec.rb
@@ -251,13 +283,12 @@ test_files:
251
283
  - spec/suites/rspec_2/functional/strong_spec.rb
252
284
  - spec/suites/rspec_2/functional/stub_spec.rb
253
285
  - spec/suites/rspec_2/functional/wildcard_matchers_spec.rb
254
- - spec/suites/rspec_2/integration/minitest_4_rails_spec.rb
286
+ - spec/suites/rspec_2/helper.rb
255
287
  - spec/suites/rspec_2/integration/minitest_4_spec.rb
256
- - spec/suites/rspec_2/integration/minitest_rails_spec.rb
257
288
  - spec/suites/rspec_2/integration/minitest_spec.rb
258
289
  - spec/suites/rspec_2/integration/rspec_2_spec.rb
259
- - spec/suites/rspec_2/integration/test_unit_rails_spec.rb
260
- - spec/suites/rspec_2/integration/test_unit_spec.rb
290
+ - spec/suites/rspec_2/integration/test_unit_200_spec.rb
291
+ - spec/suites/rspec_2/integration/test_unit_2_spec.rb
261
292
  - spec/suites/rspec_2/spec_helper.rb
262
293
  - spec/suites/rspec_2/support/matchers/wildcard_matcher_matchers.rb
263
294
  - spec/suites/rspec_2/support/shared_examples/space.rb
@@ -309,7 +340,28 @@ test_files:
309
340
  - spec/suites/rspec_2/unit/wildcard_matchers/is_a_spec.rb
310
341
  - spec/suites/rspec_2/unit/wildcard_matchers/numeric_spec.rb
311
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
312
352
  - spec/suites/test_unit_1/integration/test_unit_1_test.rb
313
353
  - spec/suites/test_unit_1/test_helper.rb
314
354
  - spec/suites/test_unit_2/integration/test_unit_2_test.rb
315
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
@@ -1,17 +0,0 @@
1
- module RR
2
- module Integrations
3
- class None
4
- def name
5
- 'No adapter'
6
- end
7
-
8
- def applies?
9
- true
10
- end
11
-
12
- def hook
13
- raise "RR: no applicable adapter could be found! Have you required a test framework?"
14
- end
15
- end
16
- end
17
- end