caricature 0.6.0 → 0.6.1

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 (66) hide show
  1. data/VERSION +1 -1
  2. data/caricature.gemspec +5 -1
  3. data/doc/Array.html +2 -2
  4. data/doc/Caricature/ArgumentRecording.html +5 -5
  5. data/doc/Caricature/ClrClassDescriptor.html +2 -2
  6. data/doc/Caricature/ClrClassMessenger.html +2 -2
  7. data/doc/Caricature/ClrInterfaceDescriptor.html +4 -4
  8. data/doc/Caricature/ClrInterfaceIsolator.html +9 -9
  9. data/doc/Caricature/ClrInterfaceMessenger.html +2 -2
  10. data/doc/Caricature/ClrIsolator.html +13 -12
  11. data/doc/Caricature/Expectation.html +19 -19
  12. data/doc/Caricature/ExpectationBuilder.html +6 -6
  13. data/doc/Caricature/ExpectationSyntax.html +49 -21
  14. data/doc/Caricature/Expectations.html +7 -7
  15. data/doc/Caricature/Interception/ClassMethods.html +6 -6
  16. data/doc/Caricature/Interception.html +12 -12
  17. data/doc/Caricature/Isolation.html +22 -22
  18. data/doc/Caricature/Isolator.html +12 -12
  19. data/doc/Caricature/MemberDescriptor.html +4 -4
  20. data/doc/Caricature/Messenger.html +8 -8
  21. data/doc/Caricature/MethodCallRecorder.html +8 -8
  22. data/doc/Caricature/MethodCallRecording.html +11 -11
  23. data/doc/Caricature/RubyIsolator.html +8 -8
  24. data/doc/Caricature/RubyMessenger.html +2 -2
  25. data/doc/Caricature/RubyObjectDescriptor.html +4 -4
  26. data/doc/Caricature/TypeDescriptor.html +6 -6
  27. data/doc/Caricature/Verification.html +13 -13
  28. data/doc/Class.html +4 -4
  29. data/doc/Hash.html +2 -2
  30. data/doc/Module.html +4 -4
  31. data/doc/Object.html +93 -6
  32. data/doc/String.html +84 -4
  33. data/doc/System/String.html +4 -4
  34. data/doc/System/Type.html +4 -4
  35. data/doc/created.rid +1 -1
  36. data/doc/index.html +114 -104
  37. data/doc/lib/caricature/clr/aspnet_mvc_rb.html +52 -0
  38. data/doc/lib/caricature/clr/descriptor_rb.html +1 -1
  39. data/doc/lib/caricature/clr/isolation_rb.html +1 -1
  40. data/doc/lib/caricature/clr/isolator_rb.html +1 -1
  41. data/doc/lib/caricature/clr/messenger_rb.html +1 -1
  42. data/doc/lib/caricature/clr_rb.html +1 -1
  43. data/doc/lib/caricature/descriptor_rb.html +1 -1
  44. data/doc/lib/caricature/expectation_rb.html +1 -1
  45. data/doc/lib/caricature/isolation_rb.html +1 -1
  46. data/doc/lib/caricature/isolator_rb.html +1 -1
  47. data/doc/lib/caricature/messenger_rb.html +1 -1
  48. data/doc/lib/caricature/method_call_recorder_rb.html +1 -1
  49. data/doc/lib/caricature/verification_rb.html +1 -1
  50. data/doc/lib/caricature_rb.html +1 -1
  51. data/doc/lib/core_ext/array_rb.html +1 -1
  52. data/doc/lib/core_ext/class_rb.html +1 -1
  53. data/doc/lib/core_ext/core_ext_rb.html +1 -1
  54. data/doc/lib/core_ext/hash_rb.html +1 -1
  55. data/doc/lib/core_ext/module_rb.html +1 -1
  56. data/doc/lib/core_ext/object_rb.html +1 -1
  57. data/doc/lib/core_ext/string_rb.html +1 -1
  58. data/doc/lib/core_ext/system/string_rb.html +1 -1
  59. data/doc/lib/core_ext/system/type_rb.html +1 -1
  60. data/lib/caricature/expectation.rb +18 -3
  61. data/lib/caricature/messenger.rb +1 -0
  62. data/pkg/caricature-0.6.0.gem +0 -0
  63. data/spec/bacon_helper.rb +10 -0
  64. data/spec/models/ClrModels.cs +7 -7
  65. data/spec/sword_spec.rb +40 -0
  66. metadata +5 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
data/caricature.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{caricature}
5
- s.version = "0.6.0"
5
+ s.version = "0.6.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ivan Porto Carrero"]
@@ -79,6 +79,7 @@ Gem::Specification.new do |s|
79
79
  "doc/js/jquery.js",
80
80
  "doc/js/quicksearch.js",
81
81
  "doc/js/thickbox-compressed.js",
82
+ "doc/lib/caricature/clr/aspnet_mvc_rb.html",
82
83
  "doc/lib/caricature/clr/descriptor_rb.html",
83
84
  "doc/lib/caricature/clr/isolation_rb.html",
84
85
  "doc/lib/caricature/clr/isolator_rb.html",
@@ -132,6 +133,7 @@ Gem::Specification.new do |s|
132
133
  "pkg/.gitignore",
133
134
  "pkg/caricature-0.1.0.gem",
134
135
  "pkg/caricature-0.5.0.gem",
136
+ "pkg/caricature-0.6.0.gem",
135
137
  "spec/bacon_helper.rb",
136
138
  "spec/bin/.gitignore",
137
139
  "spec/core_ext_spec.rb",
@@ -144,6 +146,7 @@ Gem::Specification.new do |s|
144
146
  "spec/messaging_spec.rb",
145
147
  "spec/method_call_spec.rb",
146
148
  "spec/models/ClrModels.cs",
149
+ "spec/sword_spec.rb",
147
150
  "spec/verification_spec.rb",
148
151
  "workarounds/ReflectionHelper.cs"
149
152
  ]
@@ -165,6 +168,7 @@ Gem::Specification.new do |s|
165
168
  "spec/isolator_spec.rb",
166
169
  "spec/messaging_spec.rb",
167
170
  "spec/method_call_spec.rb",
171
+ "spec/sword_spec.rb",
168
172
  "spec/verification_spec.rb"
169
173
  ]
170
174
 
data/doc/Array.html CHANGED
@@ -59,7 +59,7 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000087">#to_h</a></li>
62
+ <li><a href="#M000095">#to_h</a></li>
63
63
 
64
64
  </ul>
65
65
  </div>
@@ -193,7 +193,7 @@
193
193
 
194
194
 
195
195
  <div id="to-h-method" class="method-detail ">
196
- <a name="M000087"></a>
196
+ <a name="M000095"></a>
197
197
 
198
198
  <div class="method-heading">
199
199
 
@@ -59,9 +59,9 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000064">::new</a></li>
62
+ <li><a href="#M000067">::new</a></li>
63
63
 
64
- <li><a href="#M000066">#==</a></li>
64
+ <li><a href="#M000068">#==</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -264,7 +264,7 @@ the number of the call that has the following parameters
264
264
 
265
265
 
266
266
  <div id="new-method" class="method-detail ">
267
- <a name="M000064"></a>
267
+ <a name="M000067"></a>
268
268
 
269
269
  <div class="method-heading">
270
270
 
@@ -307,7 +307,7 @@ call count and the args as an <tt>Array</tt>
307
307
 
308
308
 
309
309
  <div id="--method" class="method-detail ">
310
- <a name="M000066"></a>
310
+ <a name="M000068"></a>
311
311
 
312
312
  <div class="method-heading">
313
313
 
@@ -332,7 +332,7 @@ argument
332
332
  <span class="ruby-comment cmt"># File lib/caricature/method_call_recorder.rb, line 29</span>
333
333
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
334
334
  <span class="ruby-identifier">other</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">other</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:each</span>)
335
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span>
335
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span>
336
336
  <span class="ruby-identifier">other</span>.<span class="ruby-identifier">args</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">args</span>
337
337
  <span class="ruby-keyword kw">end</span></pre>
338
338
  </div>
@@ -61,7 +61,7 @@
61
61
 
62
62
  <li><a href="#M000007">#initialize_class_members_for</a></li>
63
63
 
64
- <li><a href="#M000004">#initialize_instance_members_for</a></li>
64
+ <li><a href="#M000005">#initialize_instance_members_for</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -240,7 +240,7 @@ collects all the static members of the provided CLR class type
240
240
 
241
241
 
242
242
  <div id="initialize-instance-members-for-method" class="method-detail ">
243
- <a name="M000004"></a>
243
+ <a name="M000005"></a>
244
244
 
245
245
  <div class="method-heading">
246
246
 
@@ -59,7 +59,7 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000010">#internal_deliver</a></li>
62
+ <li><a href="#M000011">#internal_deliver</a></li>
63
63
 
64
64
  </ul>
65
65
  </div>
@@ -196,7 +196,7 @@ Encapsulates sending messages to CLR class or instance isolations
196
196
 
197
197
 
198
198
  <div id="internal-deliver-method" class="method-detail ">
199
- <a name="M000010"></a>
199
+ <a name="M000011"></a>
200
200
 
201
201
  <div class="method-heading">
202
202
 
@@ -59,9 +59,9 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000003">#initialize_class_members_for</a></li>
62
+ <li><a href="#M000004">#initialize_class_members_for</a></li>
63
63
 
64
- <li><a href="#M000000">#initialize_instance_members_for</a></li>
64
+ <li><a href="#M000001">#initialize_instance_members_for</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -199,7 +199,7 @@ members this descriptor does not collect any class members
199
199
 
200
200
 
201
201
  <div id="initialize-class-members-for-method" class="method-detail ">
202
- <a name="M000003"></a>
202
+ <a name="M000004"></a>
203
203
 
204
204
  <div class="method-heading">
205
205
 
@@ -231,7 +231,7 @@ this method is empty because an interface can&#8217;t have static members
231
231
 
232
232
 
233
233
  <div id="initialize-instance-members-for-method" class="method-detail ">
234
- <a name="M000000"></a>
234
+ <a name="M000001"></a>
235
235
 
236
236
  <div class="method-heading">
237
237
 
@@ -59,11 +59,11 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000011">::new</a></li>
62
+ <li><a href="#M000016">::new</a></li>
63
63
 
64
- <li><a href="#M000013">#create_isolation_for</a></li>
64
+ <li><a href="#M000018">#create_isolation_for</a></li>
65
65
 
66
- <li><a href="#M000012">#initialize_messenger</a></li>
66
+ <li><a href="#M000017">#initialize_messenger</a></li>
67
67
 
68
68
  </ul>
69
69
  </div>
@@ -212,7 +212,7 @@ that are defined on the interface.
212
212
 
213
213
 
214
214
  <div id="new-method" class="method-detail ">
215
- <a name="M000011"></a>
215
+ <a name="M000016"></a>
216
216
 
217
217
  <div class="method-heading">
218
218
 
@@ -234,7 +234,7 @@ interface defined in a CLR language.
234
234
  <div class="method-source-code"
235
235
  id="new-source">
236
236
  <pre>
237
- <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 75</span>
237
+ <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 76</span>
238
238
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">context</span>)
239
239
  <span class="ruby-keyword kw">super</span>
240
240
  <span class="ruby-identifier">sklass</span> = <span class="ruby-identifier">context</span>.<span class="ruby-identifier">subject</span>
@@ -256,7 +256,7 @@ interface defined in a CLR language.
256
256
 
257
257
 
258
258
  <div id="create-isolation-for-method" class="method-detail ">
259
- <a name="M000013"></a>
259
+ <a name="M000018"></a>
260
260
 
261
261
  <div class="method-heading">
262
262
 
@@ -277,7 +277,7 @@ builds the actual <tt>isolator</tt> for the CLR interface
277
277
  <div class="method-source-code"
278
278
  id="create-isolation-for-source">
279
279
  <pre>
280
- <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 88</span>
280
+ <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 89</span>
281
281
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_isolation_for</span>(<span class="ruby-identifier">subj</span>)
282
282
  <span class="ruby-identifier">proxy_members</span> = <span class="ruby-ivar">@descriptor</span>.<span class="ruby-identifier">instance_members</span>
283
283
 
@@ -309,7 +309,7 @@ builds the actual <tt>isolator</tt> for the CLR interface
309
309
 
310
310
 
311
311
  <div id="initialize-messenger-method" class="method-detail ">
312
- <a name="M000012"></a>
312
+ <a name="M000017"></a>
313
313
 
314
314
  <div class="method-heading">
315
315
 
@@ -330,7 +330,7 @@ initializes the messaging strategy for the isolator
330
330
  <div class="method-source-code"
331
331
  id="initialize-messenger-source">
332
332
  <pre>
333
- <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 83</span>
333
+ <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 84</span>
334
334
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_messenger</span>
335
335
  <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">messenger</span> = <span class="ruby-constant">ClrInterfaceMessenger</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">expectations</span>
336
336
  <span class="ruby-keyword kw">end</span></pre>
@@ -59,7 +59,7 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000014">#internal_deliver</a></li>
62
+ <li><a href="#M000015">#internal_deliver</a></li>
63
63
 
64
64
  </ul>
65
65
  </div>
@@ -196,7 +196,7 @@ Encapsulates sending messages to CLR interface isolations
196
196
 
197
197
 
198
198
  <div id="internal-deliver-method" class="method-detail ">
199
- <a name="M000014"></a>
199
+ <a name="M000015"></a>
200
200
 
201
201
  <div class="method-heading">
202
202
 
@@ -59,13 +59,13 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000005">::new</a></li>
62
+ <li><a href="#M000010">::new</a></li>
63
63
 
64
- <li><a href="#M000009">#___super___</a></li>
64
+ <li><a href="#M000014">#___super___</a></li>
65
65
 
66
- <li><a href="#M000008">#create_isolation_for</a></li>
66
+ <li><a href="#M000013">#create_isolation_for</a></li>
67
67
 
68
- <li><a href="#M000006">#initialize_messenger</a></li>
68
+ <li><a href="#M000012">#initialize_messenger</a></li>
69
69
 
70
70
  </ul>
71
71
  </div>
@@ -217,7 +217,7 @@ or sealed types at the moment.
217
217
 
218
218
 
219
219
  <div id="new-method" class="method-detail ">
220
- <a name="M000005"></a>
220
+ <a name="M000010"></a>
221
221
 
222
222
  <div class="method-heading">
223
223
 
@@ -249,7 +249,8 @@ defined in a CLR language.
249
249
  <span class="ruby-identifier">instance</span> = <span class="ruby-identifier">context</span>.<span class="ruby-identifier">subject</span>
250
250
  <span class="ruby-keyword kw">end</span>
251
251
  <span class="ruby-ivar">@descriptor</span> = <span class="ruby-constant">ClrClassDescriptor</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">sklass</span>
252
- <span class="ruby-identifier">build_isolation</span> <span class="ruby-identifier">sklass</span>, (<span class="ruby-identifier">instance</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">sklass</span>.<span class="ruby-identifier">new</span>)
252
+ <span class="ruby-identifier">instance</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">sklass</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">sklass</span>.<span class="ruby-identifier">to_clr_type</span>.<span class="ruby-identifier">is_abstract</span>
253
+ <span class="ruby-identifier">build_isolation</span> <span class="ruby-identifier">sklass</span>, <span class="ruby-identifier">instance</span>
253
254
  <span class="ruby-keyword kw">end</span></pre>
254
255
  </div>
255
256
 
@@ -266,7 +267,7 @@ defined in a CLR language.
266
267
 
267
268
 
268
269
  <div id="-super--method" class="method-detail ">
269
- <a name="M000009"></a>
270
+ <a name="M000014"></a>
270
271
 
271
272
  <div class="method-heading">
272
273
 
@@ -287,7 +288,7 @@ access to the proxied subject
287
288
  <div class="method-source-code"
288
289
  id="-super--source">
289
290
  <pre>
290
- <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 40</span>
291
+ <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 41</span>
291
292
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">___super___</span>
292
293
  <span class="ruby-identifier">isolation_context</span>.<span class="ruby-identifier">instance</span>
293
294
  <span class="ruby-keyword kw">end</span></pre>
@@ -300,7 +301,7 @@ access to the proxied subject
300
301
 
301
302
 
302
303
  <div id="create-isolation-for-method" class="method-detail ">
303
- <a name="M000008"></a>
304
+ <a name="M000013"></a>
304
305
 
305
306
  <div class="method-heading">
306
307
 
@@ -322,7 +323,7 @@ subject
322
323
  <div class="method-source-code"
323
324
  id="create-isolation-for-source">
324
325
  <pre>
325
- <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 30</span>
326
+ <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 31</span>
326
327
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_isolation_for</span>(<span class="ruby-identifier">subj</span>)
327
328
  <span class="ruby-identifier">members</span> = <span class="ruby-ivar">@descriptor</span>.<span class="ruby-identifier">instance_members</span>
328
329
  <span class="ruby-identifier">class_members</span> = <span class="ruby-ivar">@descriptor</span>.<span class="ruby-identifier">class_members</span>
@@ -368,7 +369,7 @@ subject
368
369
 
369
370
 
370
371
  <div id="initialize-messenger-method" class="method-detail ">
371
- <a name="M000006"></a>
372
+ <a name="M000012"></a>
372
373
 
373
374
  <div class="method-heading">
374
375
 
@@ -389,7 +390,7 @@ initializes the messaging strategy for the isolator
389
390
  <div class="method-source-code"
390
391
  id="initialize-messenger-source">
391
392
  <pre>
392
- <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 25</span>
393
+ <span class="ruby-comment cmt"># File lib/caricature/clr/isolator.rb, line 26</span>
393
394
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_messenger</span>
394
395
  <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">messenger</span> = <span class="ruby-constant">ClrClassMessenger</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">expectations</span>, <span class="ruby-ivar">@subject</span>
395
396
  <span class="ruby-keyword kw">end</span></pre>
@@ -59,17 +59,17 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000031">::new</a></li>
62
+ <li><a href="#M000038">::new</a></li>
63
63
 
64
- <li><a href="#M000036">#call_super?</a></li>
64
+ <li><a href="#M000044">#call_super?</a></li>
65
65
 
66
- <li><a href="#M000037">#execute</a></li>
66
+ <li><a href="#M000045">#execute</a></li>
67
67
 
68
- <li><a href="#M000032">#has_error_args?</a></li>
68
+ <li><a href="#M000040">#has_error_args?</a></li>
69
69
 
70
- <li><a href="#M000033">#has_return_value?</a></li>
70
+ <li><a href="#M000041">#has_return_value?</a></li>
71
71
 
72
- <li><a href="#M000035">#super_before?</a></li>
72
+ <li><a href="#M000042">#super_before?</a></li>
73
73
 
74
74
  </ul>
75
75
  </div>
@@ -312,7 +312,7 @@ and <tt>nil</tt>
312
312
 
313
313
 
314
314
  <div id="new-method" class="method-detail ">
315
- <a name="M000031"></a>
315
+ <a name="M000038"></a>
316
316
 
317
317
  <div class="method-heading">
318
318
 
@@ -333,7 +333,7 @@ Initializes a new instance of an expectation
333
333
  <div class="method-source-code"
334
334
  id="new-source">
335
335
  <pre>
336
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 101</span>
336
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 102</span>
337
337
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">error_args</span>, <span class="ruby-identifier">return_value</span>, <span class="ruby-identifier">super_mode</span>)
338
338
  <span class="ruby-ivar">@method_name</span>, <span class="ruby-ivar">@args</span>, <span class="ruby-ivar">@error_args</span>, <span class="ruby-ivar">@return_value</span>, <span class="ruby-ivar">@super</span> =
339
339
  <span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">error_args</span>, <span class="ruby-identifier">return_value</span>, <span class="ruby-identifier">super_mode</span>
@@ -354,7 +354,7 @@ Initializes a new instance of an expectation
354
354
 
355
355
 
356
356
  <div id="call-super--method" class="method-detail ">
357
- <a name="M000036"></a>
357
+ <a name="M000044"></a>
358
358
 
359
359
  <div class="method-heading">
360
360
 
@@ -375,7 +375,7 @@ indicates whether super needs to be called somewhere
375
375
  <div class="method-source-code"
376
376
  id="call-super--source">
377
377
  <pre>
378
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 123</span>
378
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 124</span>
379
379
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_super?</span>
380
380
  <span class="ruby-operator">!</span><span class="ruby-ivar">@super</span>.<span class="ruby-identifier">nil?</span>
381
381
  <span class="ruby-keyword kw">end</span></pre>
@@ -388,7 +388,7 @@ indicates whether super needs to be called somewhere
388
388
 
389
389
 
390
390
  <div id="execute-method" class="method-detail ">
391
- <a name="M000037"></a>
391
+ <a name="M000045"></a>
392
392
 
393
393
  <div class="method-heading">
394
394
 
@@ -409,10 +409,10 @@ executes this expectation with its configuration
409
409
  <div class="method-source-code"
410
410
  id="execute-source">
411
411
  <pre>
412
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 128</span>
412
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 129</span>
413
413
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">margs</span>)
414
414
  <span class="ruby-identifier">ags</span> = <span class="ruby-identifier">any_args?</span> <span class="ruby-value">? </span>(<span class="ruby-identifier">margs</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-value">? </span><span class="ruby-operator">:</span><span class="ruby-identifier">any</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">margs</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">args</span>
415
- <span class="ruby-identifier">raise</span> <span class="ruby-operator">*</span><span class="ruby-ivar">@error_args</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_error_args?</span>
415
+ <span class="ruby-identifier">actual_raise</span> <span class="ruby-operator">*</span><span class="ruby-ivar">@error_args</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_error_args?</span>
416
416
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">return_value</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_return_value?</span>
417
417
  <span class="ruby-keyword kw">nil</span>
418
418
  <span class="ruby-keyword kw">end</span></pre>
@@ -425,7 +425,7 @@ executes this expectation with its configuration
425
425
 
426
426
 
427
427
  <div id="has-error-args--method" class="method-detail ">
428
- <a name="M000032"></a>
428
+ <a name="M000040"></a>
429
429
 
430
430
  <div class="method-heading">
431
431
 
@@ -446,7 +446,7 @@ indicates whether this expecation will raise an event.
446
446
  <div class="method-source-code"
447
447
  id="has-error-args--source">
448
448
  <pre>
449
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 108</span>
449
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 109</span>
450
450
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_error_args?</span>
451
451
  <span class="ruby-operator">!</span><span class="ruby-ivar">@error_args</span>.<span class="ruby-identifier">nil?</span>
452
452
  <span class="ruby-keyword kw">end</span></pre>
@@ -459,7 +459,7 @@ indicates whether this expecation will raise an event.
459
459
 
460
460
 
461
461
  <div id="has-return-value--method" class="method-detail ">
462
- <a name="M000033"></a>
462
+ <a name="M000041"></a>
463
463
 
464
464
  <div class="method-heading">
465
465
 
@@ -480,7 +480,7 @@ indicates whether this expectation will return a value.
480
480
  <div class="method-source-code"
481
481
  id="has-return-value--source">
482
482
  <pre>
483
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 113</span>
483
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 114</span>
484
484
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_return_value?</span>
485
485
  <span class="ruby-operator">!</span><span class="ruby-ivar">@return_value</span>.<span class="ruby-identifier">nil?</span>
486
486
  <span class="ruby-keyword kw">end</span></pre>
@@ -493,7 +493,7 @@ indicates whether this expectation will return a value.
493
493
 
494
494
 
495
495
  <div id="super-before--method" class="method-detail ">
496
- <a name="M000035"></a>
496
+ <a name="M000042"></a>
497
497
 
498
498
  <div class="method-heading">
499
499
 
@@ -514,7 +514,7 @@ call the super before the expectation
514
514
  <div class="method-source-code"
515
515
  id="super-before--source">
516
516
  <pre>
517
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 118</span>
517
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 119</span>
518
518
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_before?</span>
519
519
  <span class="ruby-ivar">@super</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:before</span>
520
520
  <span class="ruby-keyword kw">end</span></pre>
@@ -59,9 +59,9 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000040">::new</a></li>
62
+ <li><a href="#M000049">::new</a></li>
63
63
 
64
- <li><a href="#M000042">#build</a></li>
64
+ <li><a href="#M000051">#build</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -210,7 +210,7 @@ and usage of the expectation
210
210
 
211
211
 
212
212
  <div id="new-method" class="method-detail ">
213
- <a name="M000040"></a>
213
+ <a name="M000049"></a>
214
214
 
215
215
  <div class="method-heading">
216
216
 
@@ -232,7 +232,7 @@ passed into the block to allow only certain operations in the block.
232
232
  <div class="method-source-code"
233
233
  id="new-source">
234
234
  <pre>
235
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 145</span>
235
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 146</span>
236
236
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">method_name</span>)
237
237
  <span class="ruby-ivar">@method_name</span>, <span class="ruby-ivar">@return_value</span>, <span class="ruby-ivar">@super</span>, <span class="ruby-ivar">@block</span>, <span class="ruby-ivar">@error_args</span>, <span class="ruby-ivar">@args</span>, <span class="ruby-ivar">@any_args</span> =
238
238
  <span class="ruby-identifier">method_name</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, [], <span class="ruby-keyword kw">true</span>
@@ -252,7 +252,7 @@ passed into the block to allow only certain operations in the block.
252
252
 
253
253
 
254
254
  <div id="build-method" class="method-detail ">
255
- <a name="M000042"></a>
255
+ <a name="M000051"></a>
256
256
 
257
257
  <div class="method-heading">
258
258
 
@@ -273,7 +273,7 @@ build up the expectation with the provided arguments
273
273
  <div class="method-source-code"
274
274
  id="build-source">
275
275
  <pre>
276
- <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 153</span>
276
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 154</span>
277
277
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span>
278
278
  <span class="ruby-constant">Expectation</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@method_name</span>, <span class="ruby-ivar">@args</span>, <span class="ruby-ivar">@error_args</span>, <span class="ruby-ivar">@return_value</span>, <span class="ruby-ivar">@super</span>
279
279
  <span class="ruby-keyword kw">end</span></pre>