rr 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. checksums.yaml +15 -0
  2. data/CHANGES.md +392 -0
  3. data/Gemfile +7 -10
  4. data/README.md +822 -0
  5. data/Rakefile +24 -78
  6. data/VERSION +1 -0
  7. data/lib/rr/adapters/minitest.rb +6 -0
  8. data/lib/rr/adapters/rr_methods.rb +6 -10
  9. data/lib/rr/adapters/rspec.rb +3 -0
  10. data/lib/rr/adapters/rspec2.rb +30 -0
  11. data/lib/rr/adapters/test_unit.rb +2 -0
  12. data/lib/rr/double.rb +3 -2
  13. data/lib/rr/double_definitions/child_double_definition_create.rb +3 -2
  14. data/lib/rr/double_definitions/double_definition.rb +15 -13
  15. data/lib/rr/double_definitions/double_definition_create.rb +9 -5
  16. data/lib/rr/double_definitions/double_injections/any_instance_of.rb +3 -2
  17. data/lib/rr/double_definitions/strategies/strategy.rb +5 -4
  18. data/lib/rr/double_definitions/strategies/strategy_methods.rb +6 -8
  19. data/lib/rr/double_definitions/strategies/verification/mock.rb +3 -3
  20. data/lib/rr/double_matches.rb +2 -1
  21. data/lib/rr/expectations/argument_equality_expectation.rb +2 -2
  22. data/lib/rr/expectations/times_called_expectation.rb +2 -2
  23. data/lib/rr/injections/double_injection.rb +12 -11
  24. data/lib/rr/injections/injection.rb +2 -2
  25. data/lib/rr/injections/method_missing_injection.rb +21 -7
  26. data/lib/rr/injections/singleton_method_added_injection.rb +3 -1
  27. data/lib/rr/method_dispatches/base_method_dispatch.rb +1 -1
  28. data/lib/rr/method_dispatches/method_dispatch.rb +2 -1
  29. data/lib/rr/method_dispatches/method_missing_dispatch.rb +2 -1
  30. data/lib/rr/proc_from_block.rb +8 -4
  31. data/lib/rr/space.rb +3 -2
  32. data/lib/rr/times_called_matchers/times_called_matcher.rb +2 -2
  33. data/lib/rr/version.rb +5 -0
  34. data/lib/rr/wildcard_matchers/boolean.rb +2 -2
  35. data/lib/rr.rb +3 -0
  36. data/spec/runner.rb +41 -0
  37. metadata +45 -133
  38. data/.gitignore +0 -10
  39. data/.runrc +0 -3
  40. data/.rvmrc +0 -2
  41. data/CHANGES +0 -266
  42. data/Gemfile.lock +0 -31
  43. data/README.rdoc +0 -392
  44. data/benchmarks/rr_benchmark.rb +0 -32
  45. data/benchmarks/rspec_benchmark.rb +0 -14
  46. data/doc/0.6.0.release.markdown +0 -81
  47. data/doc/todo.txt +0 -0
  48. data/introducting_rr.txt +0 -206
  49. data/rr.gemspec +0 -37
  50. data/spec/api/any_instance_of/all_instances_of_spec.rb +0 -12
  51. data/spec/api/any_instance_of/any_instance_of_spec.rb +0 -47
  52. data/spec/api/any_instance_of/instance_of_spec.rb +0 -12
  53. data/spec/api/dont_allow/dont_allow_after_stub_spec.rb +0 -14
  54. data/spec/api/mock/mock_spec.rb +0 -193
  55. data/spec/api/proxy/proxy_spec.rb +0 -86
  56. data/spec/api/spy/spy_spec.rb +0 -49
  57. data/spec/api/strong/strong_spec.rb +0 -87
  58. data/spec/api/stub/stub_spec.rb +0 -152
  59. data/spec/core_spec_suite.rb +0 -19
  60. data/spec/environment_fixture_setup.rb +0 -8
  61. data/spec/minitest_spec_suite.rb +0 -21
  62. data/spec/proc_from_block_spec.rb +0 -14
  63. data/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +0 -67
  64. data/spec/rr/adapters/rr_methods_creator_spec.rb +0 -137
  65. data/spec/rr/adapters/rr_methods_space_spec.rb +0 -98
  66. data/spec/rr/adapters/rr_methods_spec_helper.rb +0 -11
  67. data/spec/rr/adapters/rr_methods_times_matcher_spec.rb +0 -13
  68. data/spec/rr/double_definitions/child_double_definition_creator_spec.rb +0 -112
  69. data/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +0 -91
  70. data/spec/rr/double_definitions/double_definition_create_spec.rb +0 -443
  71. data/spec/rr/double_injection/double_injection_spec.rb +0 -546
  72. data/spec/rr/double_injection/double_injection_verify_spec.rb +0 -29
  73. data/spec/rr/errors/rr_error_spec.rb +0 -67
  74. data/spec/rr/expectations/any_argument_expectation_spec.rb +0 -47
  75. data/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +0 -14
  76. data/spec/rr/expectations/argument_equality_expectation_spec.rb +0 -135
  77. data/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +0 -34
  78. data/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +0 -82
  79. data/spec/rr/expectations/hash_including_spec.rb +0 -17
  80. data/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +0 -59
  81. data/spec/rr/expectations/satisfy_spec.rb +0 -14
  82. data/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +0 -22
  83. data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +0 -37
  84. data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +0 -43
  85. data/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +0 -15
  86. data/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +0 -58
  87. data/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +0 -35
  88. data/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +0 -39
  89. data/spec/rr/minitest/minitest_integration_test.rb +0 -59
  90. data/spec/rr/minitest/test_helper.rb +0 -7
  91. data/spec/rr/rspec/invocation_matcher_spec.rb +0 -279
  92. data/spec/rr/rspec/rspec_adapter_spec.rb +0 -63
  93. data/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +0 -31
  94. data/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +0 -11
  95. data/spec/rr/rspec/rspec_usage_spec.rb +0 -86
  96. data/spec/rr/space/hash_with_object_id_key_spec.rb +0 -88
  97. data/spec/rr/space/space_spec.rb +0 -596
  98. data/spec/rr/test_unit/test_helper.rb +0 -7
  99. data/spec/rr/test_unit/test_unit_backtrace_test.rb +0 -36
  100. data/spec/rr/test_unit/test_unit_integration_test.rb +0 -59
  101. data/spec/rr/times_called_matchers/any_times_matcher_spec.rb +0 -47
  102. data/spec/rr/times_called_matchers/at_least_matcher_spec.rb +0 -55
  103. data/spec/rr/times_called_matchers/at_most_matcher_spec.rb +0 -70
  104. data/spec/rr/times_called_matchers/integer_matcher_spec.rb +0 -70
  105. data/spec/rr/times_called_matchers/proc_matcher_spec.rb +0 -55
  106. data/spec/rr/times_called_matchers/range_matcher_spec.rb +0 -76
  107. data/spec/rr/times_called_matchers/times_called_matcher_spec.rb +0 -118
  108. data/spec/rr/wildcard_matchers/anything_spec.rb +0 -24
  109. data/spec/rr/wildcard_matchers/boolean_spec.rb +0 -36
  110. data/spec/rr/wildcard_matchers/duck_type_spec.rb +0 -52
  111. data/spec/rr/wildcard_matchers/is_a_spec.rb +0 -32
  112. data/spec/rr/wildcard_matchers/numeric_spec.rb +0 -32
  113. data/spec/rr/wildcard_matchers/range_spec.rb +0 -35
  114. data/spec/rr/wildcard_matchers/regexp_spec.rb +0 -43
  115. data/spec/rr_spec.rb +0 -28
  116. data/spec/rspec_spec_suite.rb +0 -17
  117. data/spec/spec.opts +0 -10
  118. data/spec/spec_helper.rb +0 -41
  119. data/spec/spec_suite.rb +0 -54
  120. data/spec/spy_verification_spec.rb +0 -129
  121. data/spec/test_unit_spec_suite.rb +0 -21
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDk5MTU5MzdkN2I5OWEwY2FkNmQ3MzI4MzRmMTlmYzQwYzhkMTUwOA==
5
+ data.tar.gz: !binary |-
6
+ ODM5Nzc5YzE5OGJmMzZhOWQ5M2YzMzdjM2IzMjAxYzQyOWM1NzQ4Yg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NDk1OGY1YTg5NmFlNTFlYjkyNTQ2ZTE0Njk0NzFmNzllN2I1MDQ2ZDQzZjM4
10
+ NjM2MWUxNTZmZmUzNjljM2EwMmU5YjZlMDg4NWFlNWViMzY4MmNhYTg1N2Uw
11
+ ODhlZjY5ZTg2M2JhZmJiMmI4YmNhMGRiZDhlZGQxMzM4YjUzYWU=
12
+ data.tar.gz: !binary |-
13
+ ZWYxYTIxNjVkNDMzNmJjM2I1ODMxMTk1MjA1MDcyZDIzZTFjY2YxYzk0NmFi
14
+ ODdkZmJlMzgzZWFjMzZiODk3MzhmOTc5MzEwZTI0YmVlMzJmZmFkOGJhOTVh
15
+ MTU5YWY1MWUxOWMwMDk0YTg3NmJkZDJhYzk5OTQwYzQ3NTA5ZDY=
data/CHANGES.md ADDED
@@ -0,0 +1,392 @@
1
+ # Changelog
2
+
3
+ ## 1.0.5 (2013-03-28)
4
+
5
+ * Compatibility with RSpec-2. There are now two adapters for RSpec, one that
6
+ works with RSpec-1 and a new one that works with RSpec-2. Currently, saying
7
+ `RSpec.configure {|c| c.mock_with(:rr) }` still uses RSpec-1; to use the new
8
+ one, you say `RSpec.configure {|c| c.mock_framework = RR::Adapters::RSpec2 }`.
9
+ (#66, #68, #80) [njay, james2m]
10
+ * Fix MethodMissingInjection so that `[stub].flatten` works without throwing a
11
+ NoMethodError (undefined method #to_ary) error under Ruby 1.9 (#44)
12
+ * Raise a MiniTest::Assertion error in the MiniTest adapter so that mock
13
+ failures appear in the output as failures rather than uncaught exceptions
14
+ (#69) [jayferd]
15
+ * Completely remove leftover #new_instance_of method, and also remove
16
+ mention of #new_instance_of from the README
17
+ * Fix tests so they all work and pass again
18
+
19
+ ## 1.0.4 (2011-06-11)
20
+
21
+ * Fixed bug using workaround with leftover MethodMissingInjections
22
+
23
+ ## 1.0.3 (2011-06-11)
24
+
25
+ * Eliminate usage of ObjectSpace._id2ref (Patch Evan Phoenix)
26
+ * Added minitest adapter (Patch Caleb Spare)
27
+ * Added instructions on installing the gem (Patch Gavin Miller)
28
+ * delete missing scratch.rb file from gemspec (Patch bonkydog)
29
+
30
+ ## 1.0.2 (2010-11-01)
31
+
32
+ * Fixed Two calls recorded to a mock expecting only one call when called via
33
+ another mock's yield block
34
+ (http://github.com/btakita/rr/issues/closed#issue/42). Patch by Eugene Pimenov
35
+ (http://github.com/libc).
36
+
37
+ ## 1.0.1 (2010-10-30)
38
+
39
+ * Removed new_instance_of for Ruby 1.9.2 compatibility. instance_of is now an
40
+ alias for any_instance_of.
41
+ * Compatible with Ruby 1.9.2
42
+
43
+ ## 1.0.0 (2010-08-23)
44
+
45
+ * Added any_instance_of (aliased by all_instances_of), which binds methods
46
+ directly to the class (instead of the eigenclass).
47
+ * Subclasses of a injected class do not have their methods overridden.
48
+ * any_instance_of and new_instance_of now have a block syntax
49
+
50
+ ## 0.10.11 (2010-03-22)
51
+
52
+ * Added RR.blank_slate_whitelist
53
+ * Fixed class_eval method redefinition warning in jruby
54
+
55
+ ## 0.10.10 (2010-02-25)
56
+
57
+ * Suite passes for Ruby 1.9.1
58
+
59
+ ## 0.10.9 (2010-02-17)
60
+
61
+ * Fixed 1.8.6 bug for real
62
+
63
+ ## 0.10.8 (2010-02-16)
64
+
65
+ * Fixed 1.8.6 bug
66
+
67
+ ## 0.10.7 (2010-02-15)
68
+
69
+ * Fixed issue with DoubleInjections binding to objects overriding the method
70
+ method.
71
+
72
+ ## 0.10.6 (2010-02-15)
73
+
74
+ * Added MIT license
75
+ * Fixed Bug - dont_allow doesn't work when it follows stub
76
+ (http://github.com/btakita/rr/issues#issue/20)
77
+ * Fixed exception with DoubleInjections on proxy objects
78
+ (http://github.com/btakita/rr/issues#issue/24)
79
+ * Fixed Bug - Can't stub attribute methods on a BelongsToAssociation
80
+ (http://github.com/btakita/rr/issues#issue/24)
81
+
82
+ ## 0.10.5 (2009-12-20)
83
+
84
+ * Fixed stack overflow caused by double include in Test::Unit adapter
85
+ [http://github.com/btakita/rr/issues#issue/16]. Identified by Dave Myron
86
+ (http://github.com/contentfree)
87
+ * Fixed warnings (Patch by Bryan Helmkamp)
88
+
89
+ ## 0.10.4 (2009-09-26)
90
+
91
+ * Handle lazily defined methods (where respond_to? returns true yet the method
92
+ is not yet defined and the first call to method_missing defines the method).
93
+ This pattern is used in ActiveRecord and ActionMailer.
94
+ * Fixed warning about aliasing #instance_exec in jruby.
95
+ http://github.com/btakita/rr/issues#issue/9 (Patch by Nathan Sobo)
96
+
97
+ ## 0.10.2 (2009-08-30)
98
+
99
+ * RR properly proxies subjects with private methods
100
+ [http://github.com/btakita/rr/issues/#issue/7]. Identified by Matthew
101
+ O'Connor.
102
+
103
+ ## 0.10.1 (???)
104
+
105
+ * Fixed issue with DoubleInjection not invoking methods that are lazily created
106
+ [http://github.com/btakita/rr/issues/#issue/4]. Identified by davidlee
107
+ (http://github.com/davidlee)
108
+ * Fixed issue with mock.proxy and returns
109
+ [http://github.com/btakita/rr/issues/#issue/2]. Identified by trogdoro
110
+ (http://github.com/trogdoro)
111
+
112
+ ## 0.10.0 (2009-06-01)
113
+
114
+ * Method is no longer invoked if respond_to? returns false. This was in place to
115
+ support ActiveRecord association proxies, and is no longer needed.
116
+
117
+ ## 0.9.0 (2009-04-25)
118
+
119
+ * instance_of Doubles now apply to methods invoked in the subject's #initialize
120
+ method.
121
+
122
+ ## 0.8.1 (2009-03-29)
123
+
124
+ * Fixed exception where the Subject uses method delegation via method_missing
125
+ (e.g. certain ActiveRecord AssociationProxy methods)
126
+
127
+ ## 0.8.0 (2009-03-29)
128
+
129
+ * Fixed compatability issues with Ruby 1.9
130
+ * Aliased any_number_of_times with any_times
131
+ * Better error messages for have_received and assert_received matchers (Patch by
132
+ Joe Ferris)
133
+ * Better documentation on RR wilcard matchers (Patch by Phil Arnowsky)
134
+
135
+ ## 0.7.1 (2009-01-16)
136
+
137
+ * Performance improvements
138
+
139
+ ## 0.7.0 (2008-12-14)
140
+
141
+ * Added spies (Patchs by Joe Ferris, Michael Niessner & Mike Mangino)
142
+ * Added strongly typed reimplementation doubles (Patch by Michael Niessner)
143
+
144
+ ## 0.6.2 (???)
145
+
146
+ * Fixed DoubleDefinition chaining edge cases
147
+
148
+ ## 0.6.1 (???)
149
+
150
+ * DoubleDefinitionCreatorProxy definition eval block is instance_evaled when the
151
+ arity is not 1. When the arity is 1, the block is yielded with the
152
+ DoubleDefinitionCreatorProxy passed in.
153
+
154
+ ## 0.6.0 (2008-10-13)
155
+
156
+ * Friendlier DoubleNotFound error message
157
+ * Implemented Double strategy creation methods (#mock, #stub, #proxy,
158
+ #instance_of, and ! equivalents) on DoubleDefinition
159
+ * Implemented hash_including matcher (Patch by Matthew O'Conner)
160
+ * Implemented satisfy matcher (Patch by Matthew O'Conner)
161
+ * Implemented DoubleDefinitionCreator#mock!, #stub!, and #dont_allow!
162
+ * Modified api to method chain Doubles
163
+ * Fix conflict with Mocha overriding Object#verify
164
+
165
+ ## 0.5.0 (???)
166
+
167
+ * Method chaining Doubles (Patch by Nick Kallen)
168
+ * Chained ordered expectations (Patch by Nick Kallen)
169
+ * Space#verify_doubles can take one or more objects with DoubleInjections to be
170
+ verified
171
+
172
+ ## 0.4.10 (2008-07-06)
173
+
174
+ * DoubleDefinitionCreatorProxy does not undef #object_id
175
+ * Fixed rdoc pointer to README
176
+
177
+ ## 0.4.9 (2008-06-18)
178
+
179
+ * Proxying from RR module to RR::Space.instance
180
+
181
+ ## 0.4.8 (2008-01-23)
182
+
183
+ * Fixed issue with Hash arguments
184
+
185
+ ## 0.4.7 (2008-01-23)
186
+
187
+ * Improved error message
188
+
189
+ ## 0.4.6 (2008-01-23)
190
+
191
+ * Added Double#verbose and Double#verbose?
192
+
193
+ ## 0.4.5 (2008-01-15)
194
+
195
+ * Fixed doubles for == and #eql? methods
196
+
197
+ ## 0.4.4 (2008-01-15)
198
+
199
+ * Doc improvements
200
+ * Methods that are not alphabetic, such as ==, can be doubles
201
+
202
+ ## 0.4.3 (2008-01-07)
203
+
204
+ * Doc improvements
205
+ * Cleanup
206
+ * Finished renaming scenario to double
207
+
208
+ ## 0.4.2 (2007-12-31)
209
+
210
+ * Renamed DoubleInsertion to DoubleInjection to be consistent with Mocha
211
+ terminology
212
+
213
+ ## 0.4.1 (2007-12-31)
214
+
215
+ * Fixed backward compatability issues with rspec
216
+ * Renamed Space#verify_double_insertions to #verify_doubles
217
+
218
+ ## 0.4.0 (2007-12-30)
219
+
220
+ * Documentation improvements
221
+ * Renamed Double to DoubleInsertion
222
+ * Renamed Scenario to Double
223
+
224
+ ## 0.3.11 (2007-09-06)
225
+
226
+ * Fixed [#13724] Mock Proxy on Active Record Association proxies causes error
227
+
228
+ ## 0.3.10 (2007-08-18)
229
+
230
+ * Fixed [#13139] Blocks added to proxy sets the return_value and not the
231
+ after_call callback
232
+
233
+ ## 0.3.9 (2007-08-14)
234
+
235
+ * Alias probe to proxy
236
+
237
+ ## 0.3.8 (2007-08-12)
238
+
239
+ * Implemented [#13009] Better error mesage from TimesCalledMatcher
240
+
241
+ ## 0.3.7 (2007-08-09)
242
+
243
+ * Fixed [#12928] Reset doubles fails on Rails association proxies
244
+
245
+ ## 0.3.6 (2007-08-01)
246
+
247
+ * Fixed [#12765] Issues with ObjectSpace._id2ref
248
+
249
+ ## 0.3.5 (2007-07-29)
250
+
251
+ * trim_backtrace is only set for Test::Unit
252
+
253
+ ## 0.3.4 (2007-07-22)
254
+
255
+ * Implemented instance_of
256
+
257
+ ## 0.3.3 (2007-07-22)
258
+
259
+ * Fixed [#12495] Error Probing method_missing interaction
260
+
261
+ ## 0.3.2 (2007-07-22)
262
+
263
+ * Fixed [#12486] ScenarioMethodProxy when Kernel passed into instance methods
264
+
265
+ ## 0.3.1 (2007-07-22)
266
+
267
+ * Automatically require Test::Unit and Rspec adapters
268
+
269
+ ## 0.3.0 (2007-07-22)
270
+
271
+ * ScenarioCreator strategy method chaining
272
+ * Removed mock_probe
273
+ * Removed stub_probe
274
+
275
+ ## 0.2.5 (2007-07-21)
276
+
277
+ * mock takes method_name argument
278
+ * stub takes method_name argument
279
+ * mock_probe takes method_name argument
280
+ * stub_probe takes method_name argument
281
+ * probe takes method_name argument
282
+ * dont_allow takes method_name argument
283
+ * do_not_allow takes method_name argument
284
+
285
+ ## 0.2.4 (2007-07-19)
286
+
287
+ * Space#doubles key is now the object id
288
+ * Fixed [#12402] Stubbing return value of probes fails after calling the stubbed
289
+ method two times
290
+
291
+ ## 0.2.3 (2007-07-18)
292
+
293
+ * Added RRMethods#rr_verify and RRMethods#rr_reset
294
+
295
+ ## 0.2.2 (2007-07-17)
296
+
297
+ * Fixed "singleton method bound for a different object"
298
+ * Doing Method aliasing again to store original method
299
+
300
+ ## 0.2.1 (2007-07-17)
301
+
302
+ * Added mock_probe
303
+ * Added stub_probe
304
+ * Probe returns the return value of the passed in block, instead of ignoring its
305
+ return value
306
+ * Scenario#after_call returns the return value of the passed in block
307
+ * Not using method aliasing to store original method
308
+ * Renamed DoubleMethods to RRMethods
309
+ * Added RRMethods#mock_probe
310
+
311
+ ## 0.1.15 (2007-07-17)
312
+
313
+ * Fixed [#12333] Rebinding original_methods causes blocks not to work
314
+
315
+ ## 0.1.14 (2007-07-16)
316
+
317
+ * Introduced concept of Terminal and NonTerminal TimesCalledMatchers
318
+ * Doubles that can be called many times can be replaced
319
+ * Terminal Scenarios are called before NonTerminal Scenarios
320
+ * Error message tweaking
321
+ * Raise error when making a Scenarios with NonTerminal TimesMatcher Ordered
322
+
323
+ ## 0.1.13 (2007-07-14)
324
+
325
+ * Fixed [#12290] Scenario#returns with false causes a return value of nil
326
+
327
+ ## 0.1.12 (2007-07-14)
328
+
329
+ * Fixed bug where Creators methods are not removed when methods are defined on
330
+ Object
331
+ * Fixed [#12289] Creators methods are not removed in Rails environment
332
+
333
+ ## 0.1.11 (2007-07-14)
334
+
335
+ * Fixed [#12287] AtLeastMatcher does not cause Scenario to be called
336
+
337
+ ## 0.1.10 (2007-07-14)
338
+
339
+ * Fixed [#12286] AnyArgumentExpectation#expected_arguments not implemented
340
+
341
+ ## 0.1.9 (2007-07-14)
342
+
343
+ * Added DoubleMethods#any_times
344
+ * Added Scenario#any_number_of_times
345
+
346
+ ## 0.1.8 (2007-07-14)
347
+
348
+ * TimesCalledError Message Formatted to be on multiple lines
349
+ * ScenarioNotFoundError Message includes all Scenarios for the Double
350
+ * ScenarioOrderError shows list of remaining ordered scenarios
351
+
352
+ ## 0.1.7 (2007-07-14)
353
+
354
+ * Fixed [#12194] Double#reset_doubles are not clearing Ordered Scenarios bug
355
+ * Added Space#reset
356
+ * Space#reset_doubles and Space#reset_ordered_scenarios is now protected
357
+ * Added Scenario#at_least
358
+ * Added Scenario#at_most
359
+
360
+ ## 0.1.6 (2007-07-10)
361
+
362
+ * [#12120] probe allows a the return value to be intercepted
363
+
364
+ ## 0.1.5 (2007-07-09)
365
+
366
+ * TimesCalledExpectation says how many times were called and how many times
367
+ called were expected on error
368
+
369
+ ## 0.1.4 (2007-07-09)
370
+
371
+ * TimesCalledError prints the backtrace to where the Scenario was defined when
372
+ being verified
373
+ * Error message includes method name when Scenario is not found
374
+
375
+ ## 0.1.3 (2007-07-09)
376
+
377
+ * Fixed issue where Double#placeholder_name issues when Double method name has a
378
+ ! or ?
379
+
380
+ ## 0.1.2 (2007-07-08)
381
+
382
+ * Scenario#returns also accepts an argument
383
+ * Implemented Scenario#yields
384
+
385
+ ## 0.1.1 (2007-07-08)
386
+
387
+ * Trim the backtrace for Rspec and Test::Unit
388
+ * Rspec and Test::Unit integration fixes
389
+
390
+ ## 0.1.0 (2007-07-07)
391
+
392
+ * Initial Release
data/Gemfile CHANGED
@@ -1,12 +1,9 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
- group :test do
4
- gem "rspec", "1.3.0"
5
- gem "session", "3.1.0"
6
- gem "diff-lcs", "1.1.2"
7
- if RUBY_VERSION.include?("1.9")
8
- gem "ruby-debug19", "0.11.6"
9
- else
10
- gem "ruby-debug", "0.10.4"
11
- end
3
+ gem 'rake', '~> 10.0'
4
+
5
+ gem "rspec", "~> 2.13.0"
6
+ if RUBY_VERSION !~ /^1.8/
7
+ gem "minitest", "~> 4.7.0"
12
8
  end
9
+ gem "session", "~> 3.0"