caricature 0.3.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/.gitignore +4 -0
  2. data/Rakefile +100 -0
  3. data/VERSION +1 -0
  4. data/caricature.gemspec +177 -0
  5. data/doc/Array.html +251 -0
  6. data/doc/Caricature/ArgumentRecording.html +366 -0
  7. data/doc/Caricature/ClrClassDescriptor.html +303 -0
  8. data/doc/Caricature/ClrClassMessenger.html +263 -0
  9. data/doc/Caricature/ClrInterfaceDescriptor.html +295 -0
  10. data/doc/Caricature/ClrInterfaceIsolator.html +365 -0
  11. data/doc/Caricature/ClrInterfaceMessenger.html +260 -0
  12. data/doc/Caricature/ClrIsolator.html +424 -0
  13. data/doc/Caricature/Expectation.html +549 -0
  14. data/doc/Caricature/ExpectationBuilder.html +308 -0
  15. data/doc/Caricature/ExpectationSyntax.html +438 -0
  16. data/doc/Caricature/Expectations.html +344 -0
  17. data/doc/Caricature/Interception/ClassMethods.html +246 -0
  18. data/doc/Caricature/Interception.html +416 -0
  19. data/doc/Caricature/Isolation.html +578 -0
  20. data/doc/Caricature/Isolator.html +519 -0
  21. data/doc/Caricature/MemberDescriptor.html +335 -0
  22. data/doc/Caricature/Messenger.html +335 -0
  23. data/doc/Caricature/MethodCallRecorder.html +440 -0
  24. data/doc/Caricature/MethodCallRecording.html +493 -0
  25. data/doc/Caricature/RubyIsolator.html +416 -0
  26. data/doc/Caricature/RubyMessenger.html +260 -0
  27. data/doc/Caricature/RubyObjectDescriptor.html +289 -0
  28. data/doc/Caricature/TypeDescriptor.html +378 -0
  29. data/doc/Caricature/Verification.html +443 -0
  30. data/doc/Caricature.html +358 -0
  31. data/doc/Class.html +287 -0
  32. data/doc/Hash.html +255 -0
  33. data/doc/Module.html +287 -0
  34. data/doc/Object.html +322 -0
  35. data/doc/README_markdown.html +241 -0
  36. data/doc/String.html +289 -0
  37. data/doc/System/String.html +289 -0
  38. data/doc/System/Type.html +289 -0
  39. data/doc/System.html +207 -0
  40. data/doc/created.rid +1 -0
  41. data/doc/images/brick.png +0 -0
  42. data/doc/images/brick_link.png +0 -0
  43. data/doc/images/bug.png +0 -0
  44. data/doc/images/bullet_black.png +0 -0
  45. data/doc/images/bullet_toggle_minus.png +0 -0
  46. data/doc/images/bullet_toggle_plus.png +0 -0
  47. data/doc/images/date.png +0 -0
  48. data/doc/images/find.png +0 -0
  49. data/doc/images/loadingAnimation.gif +0 -0
  50. data/doc/images/macFFBgHack.png +0 -0
  51. data/doc/images/package.png +0 -0
  52. data/doc/images/page_green.png +0 -0
  53. data/doc/images/page_white_text.png +0 -0
  54. data/doc/images/page_white_width.png +0 -0
  55. data/doc/images/plugin.png +0 -0
  56. data/doc/images/ruby.png +0 -0
  57. data/doc/images/tag_green.png +0 -0
  58. data/doc/images/wrench.png +0 -0
  59. data/doc/images/wrench_orange.png +0 -0
  60. data/doc/images/zoom.png +0 -0
  61. data/doc/index.html +312 -0
  62. data/doc/js/darkfish.js +116 -0
  63. data/doc/js/jquery.js +32 -0
  64. data/doc/js/quicksearch.js +114 -0
  65. data/doc/js/thickbox-compressed.js +10 -0
  66. data/doc/lib/caricature/clr/descriptor_rb.html +52 -0
  67. data/doc/lib/caricature/clr/isolation_rb.html +52 -0
  68. data/doc/lib/caricature/clr/isolator_rb.html +52 -0
  69. data/doc/lib/caricature/clr/messenger_rb.html +52 -0
  70. data/doc/lib/caricature/clr_rb.html +52 -0
  71. data/doc/lib/caricature/descriptor_rb.html +52 -0
  72. data/doc/lib/caricature/expectation_rb.html +52 -0
  73. data/doc/lib/caricature/isolation_rb.html +52 -0
  74. data/doc/lib/caricature/isolator_rb.html +52 -0
  75. data/doc/lib/caricature/messaging_rb.html +52 -0
  76. data/doc/lib/caricature/method_call_recorder_rb.html +52 -0
  77. data/doc/lib/caricature/verification_rb.html +52 -0
  78. data/doc/lib/caricature_rb.html +52 -0
  79. data/doc/lib/core_ext/array_rb.html +52 -0
  80. data/doc/lib/core_ext/class_rb.html +52 -0
  81. data/doc/lib/core_ext/core_ext_rb.html +52 -0
  82. data/doc/lib/core_ext/hash_rb.html +52 -0
  83. data/doc/lib/core_ext/module_rb.html +52 -0
  84. data/doc/lib/core_ext/object_rb.html +52 -0
  85. data/doc/lib/core_ext/string_rb.html +52 -0
  86. data/doc/lib/core_ext/system/string_rb.html +52 -0
  87. data/doc/lib/core_ext/system/type_rb.html +52 -0
  88. data/doc/rdoc.css +696 -0
  89. data/irb_init.rb +9 -0
  90. data/lib/bin/Workarounds.dll +0 -0
  91. data/lib/bin/Workarounds.pdb +0 -0
  92. data/lib/caricature/clr/descriptor.rb +55 -0
  93. data/lib/caricature/clr/isolation.rb +33 -0
  94. data/lib/caricature/clr/isolator.rb +112 -0
  95. data/lib/caricature/clr/messenger.rb +46 -0
  96. data/lib/caricature/clr.rb +6 -0
  97. data/lib/caricature/descriptor.rb +74 -0
  98. data/lib/caricature/expectation.rb +159 -0
  99. data/lib/caricature/isolation.rb +146 -0
  100. data/lib/caricature/isolator.rb +287 -0
  101. data/lib/caricature/messenger.rb +57 -0
  102. data/lib/caricature/method_call_recorder.rb +130 -0
  103. data/lib/caricature/verification.rb +43 -0
  104. data/lib/caricature.rb +11 -0
  105. data/lib/core_ext/array.rb +10 -0
  106. data/lib/core_ext/class.rb +15 -0
  107. data/lib/core_ext/core_ext.rb +8 -0
  108. data/lib/core_ext/hash.rb +13 -0
  109. data/lib/core_ext/module.rb +15 -0
  110. data/lib/core_ext/object.rb +19 -0
  111. data/lib/core_ext/string.rb +17 -0
  112. data/lib/core_ext/system/string.rb +21 -0
  113. data/lib/core_ext/system/type.rb +21 -0
  114. data/pkg/.gitignore +0 -0
  115. data/pkg/caricature-0.1.0.gem +0 -0
  116. data/spec/bacon_helper.rb +49 -3
  117. data/spec/bin/.gitignore +0 -0
  118. data/spec/core_ext_spec.rb +9 -0
  119. data/spec/descriptor_spec.rb +142 -0
  120. data/spec/expectation_spec.rb +11 -7
  121. data/spec/integration_spec.rb +94 -2
  122. data/spec/isolation_spec.rb +0 -42
  123. data/spec/isolator_spec.rb +72 -66
  124. data/spec/messaging_spec.rb +172 -0
  125. data/spec/method_call_spec.rb +21 -21
  126. data/spec/models/ClrModels.cs +185 -0
  127. data/spec/verification_spec.rb +1 -1
  128. data/workarounds/ReflectionHelper.cs +30 -0
  129. metadata +133 -2
@@ -0,0 +1,549 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Caricature::Expectation</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="file-metadata">
26
+ <div id="file-list-section" class="section">
27
+ <h3 class="section-header">In Files</h3>
28
+ <div class="section-body">
29
+ <ul>
30
+
31
+ <li><a href="../lib/caricature/expectation_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="lib/caricature/expectation.rb">lib/caricature/expectation.rb</a></li>
33
+
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ </div>
40
+
41
+ <div id="class-metadata">
42
+
43
+ <!-- Parent Class -->
44
+
45
+ <div id="parent-class-section" class="section">
46
+ <h3 class="section-header">Parent</h3>
47
+
48
+ <p class="link"><a href="../Object.html">Object</a></p>
49
+
50
+ </div>
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+
55
+
56
+ <!-- Method Quickref -->
57
+
58
+ <div id="method-list-section" class="section">
59
+ <h3 class="section-header">Methods</h3>
60
+ <ul class="link-list">
61
+
62
+ <li><a href="#M000031">::new</a></li>
63
+
64
+ <li><a href="#M000035">#call_super?</a></li>
65
+
66
+ <li><a href="#M000036">#execute</a></li>
67
+
68
+ <li><a href="#M000032">#has_error_args?</a></li>
69
+
70
+ <li><a href="#M000033">#has_return_value?</a></li>
71
+
72
+ <li><a href="#M000034">#super_before?</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Included Modules -->
79
+
80
+ <div id="includes-section" class="section">
81
+ <h3 class="section-header">Included Modules</h3>
82
+ <ul class="link-list">
83
+
84
+
85
+ <li><a class="include" href="Interception.html">Caricature::Interception</a></li>
86
+
87
+
88
+ </ul>
89
+ </div>
90
+
91
+ </div>
92
+
93
+ <div id="project-metadata">
94
+
95
+
96
+ <div id="fileindex-section" class="section project-section">
97
+ <h3 class="section-header">Files</h3>
98
+ <ul>
99
+
100
+ <li class="file"><a href="../README_markdown.html">README.markdown</a></li>
101
+
102
+ </ul>
103
+ </div>
104
+
105
+
106
+ <div id="classindex-section" class="section project-section">
107
+ <h3 class="section-header">Class Index
108
+ <span class="search-toggle"><img src="../images/find.png"
109
+ height="16" width="16" alt="[+]"
110
+ title="show/hide quicksearch" /></span></h3>
111
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
112
+ <fieldset>
113
+ <legend>Quicksearch</legend>
114
+ <input type="text" name="quicksearch" value=""
115
+ class="quicksearch-field" />
116
+ </fieldset>
117
+ </form>
118
+
119
+ <ul class="link-list">
120
+
121
+ <li><a href="../Caricature.html">Caricature</a></li>
122
+
123
+ <li><a href="../Caricature/ArgumentRecording.html">Caricature::ArgumentRecording</a></li>
124
+
125
+ <li><a href="../Caricature/ClrClassDescriptor.html">Caricature::ClrClassDescriptor</a></li>
126
+
127
+ <li><a href="../Caricature/ClrClassMessenger.html">Caricature::ClrClassMessenger</a></li>
128
+
129
+ <li><a href="../Caricature/ClrInterfaceDescriptor.html">Caricature::ClrInterfaceDescriptor</a></li>
130
+
131
+ <li><a href="../Caricature/ClrInterfaceIsolator.html">Caricature::ClrInterfaceIsolator</a></li>
132
+
133
+ <li><a href="../Caricature/ClrInterfaceMessenger.html">Caricature::ClrInterfaceMessenger</a></li>
134
+
135
+ <li><a href="../Caricature/ClrIsolator.html">Caricature::ClrIsolator</a></li>
136
+
137
+ <li><a href="../Caricature/Expectation.html">Caricature::Expectation</a></li>
138
+
139
+ <li><a href="../Caricature/ExpectationBuilder.html">Caricature::ExpectationBuilder</a></li>
140
+
141
+ <li><a href="../Caricature/ExpectationSyntax.html">Caricature::ExpectationSyntax</a></li>
142
+
143
+ <li><a href="../Caricature/Expectations.html">Caricature::Expectations</a></li>
144
+
145
+ <li><a href="../Caricature/Interception.html">Caricature::Interception</a></li>
146
+
147
+ <li><a href="../Caricature/Interception/ClassMethods.html">Caricature::Interception::ClassMethods</a></li>
148
+
149
+ <li><a href="../Caricature/Isolation.html">Caricature::Isolation</a></li>
150
+
151
+ <li><a href="../Caricature/Isolator.html">Caricature::Isolator</a></li>
152
+
153
+ <li><a href="../Caricature/MemberDescriptor.html">Caricature::MemberDescriptor</a></li>
154
+
155
+ <li><a href="../Caricature/Messenger.html">Caricature::Messenger</a></li>
156
+
157
+ <li><a href="../Caricature/MethodCallRecorder.html">Caricature::MethodCallRecorder</a></li>
158
+
159
+ <li><a href="../Caricature/MethodCallRecording.html">Caricature::MethodCallRecording</a></li>
160
+
161
+ <li><a href="../Caricature/RubyIsolator.html">Caricature::RubyIsolator</a></li>
162
+
163
+ <li><a href="../Caricature/RubyMessenger.html">Caricature::RubyMessenger</a></li>
164
+
165
+ <li><a href="../Caricature/RubyObjectDescriptor.html">Caricature::RubyObjectDescriptor</a></li>
166
+
167
+ <li><a href="../Caricature/TypeDescriptor.html">Caricature::TypeDescriptor</a></li>
168
+
169
+ <li><a href="../Caricature/Verification.html">Caricature::Verification</a></li>
170
+
171
+ <li><a href="../System.html">System</a></li>
172
+
173
+ <li><a href="../System/String.html">System::String</a></li>
174
+
175
+ <li><a href="../System/Type.html">System::Type</a></li>
176
+
177
+ <li><a href="../Array.html">Array</a></li>
178
+
179
+ <li><a href="../Class.html">Class</a></li>
180
+
181
+ <li><a href="../Hash.html">Hash</a></li>
182
+
183
+ <li><a href="../Module.html">Module</a></li>
184
+
185
+ <li><a href="../Object.html">Object</a></li>
186
+
187
+ <li><a href="../String.html">String</a></li>
188
+
189
+ </ul>
190
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
191
+ </div>
192
+
193
+
194
+ </div>
195
+ </div>
196
+
197
+ <div id="documentation">
198
+ <h1 class="class">Caricature::Expectation</h1>
199
+
200
+ <div id="description">
201
+ <p>
202
+ A description of an expectation. An expectation has the power to call the
203
+ proxy method or completely ignore it
204
+ </p>
205
+
206
+ </div>
207
+
208
+ <!-- Constants -->
209
+
210
+
211
+ <!-- Attributes -->
212
+
213
+ <div id="attribute-method-details" class="method-section section">
214
+ <h3 class="section-header">Attributes</h3>
215
+
216
+
217
+ <div id="method-name-attribute-method" class="method-detail">
218
+ <a name="method_name"></a>
219
+
220
+ <div class="method-heading attribute-method-heading">
221
+ <span class="method-name">method_name</span><span
222
+ class="attribute-access-type">[R]</span>
223
+ </div>
224
+
225
+ <div class="method-description">
226
+
227
+ <p>
228
+ gets the <a href="Expectation.html#method_name">method_name</a> to which
229
+ this expectation needs to listen to
230
+ </p>
231
+
232
+ </div>
233
+ </div>
234
+
235
+ <div id="args-attribute-method" class="method-detail">
236
+ <a name="args"></a>
237
+
238
+ <div class="method-heading attribute-method-heading">
239
+ <span class="method-name">args</span><span
240
+ class="attribute-access-type">[R]</span>
241
+ </div>
242
+
243
+ <div class="method-description">
244
+
245
+ <p>
246
+ the arguments that this expectation needs to be constrained by
247
+ </p>
248
+
249
+ </div>
250
+ </div>
251
+
252
+ <div id="error-args-attribute-method" class="method-detail">
253
+ <a name="error_args"></a>
254
+
255
+ <div class="method-heading attribute-method-heading">
256
+ <span class="method-name">error_args</span><span
257
+ class="attribute-access-type">[R]</span>
258
+ </div>
259
+
260
+ <div class="method-description">
261
+
262
+ <p>
263
+ the <a href="Expectation.html#error_args">error_args</a> that this
264
+ expectation will raise an error with
265
+ </p>
266
+
267
+ </div>
268
+ </div>
269
+
270
+ <div id="return-value-attribute-method" class="method-detail">
271
+ <a name="return_value"></a>
272
+
273
+ <div class="method-heading attribute-method-heading">
274
+ <span class="method-name">return_value</span><span
275
+ class="attribute-access-type">[R]</span>
276
+ </div>
277
+
278
+ <div class="method-description">
279
+
280
+ <p>
281
+ the value that this expecation will return when executed
282
+ </p>
283
+
284
+ </div>
285
+ </div>
286
+
287
+ <div id="super-attribute-method" class="method-detail">
288
+ <a name="super"></a>
289
+
290
+ <div class="method-heading attribute-method-heading">
291
+ <span class="method-name">super</span><span
292
+ class="attribute-access-type">[R]</span>
293
+ </div>
294
+
295
+ <div class="method-description">
296
+
297
+ <p>
298
+ indicator for the mode to call the super <tt>:before</tt>, <tt>:after</tt>
299
+ and <tt>nil</tt>
300
+ </p>
301
+
302
+ </div>
303
+ </div>
304
+
305
+ </div>
306
+
307
+
308
+ <!-- Methods -->
309
+
310
+ <div id="public-class-method-details" class="method-section section">
311
+ <h3 class="section-header">Public Class Methods</h3>
312
+
313
+
314
+ <div id="new-method" class="method-detail ">
315
+ <a name="M000031"></a>
316
+
317
+ <div class="method-heading">
318
+
319
+ <span class="method-name">new</span><span
320
+ class="method-args">(method_name, args, error_args, return_value, super_mode)</span>
321
+ <span class="method-click-advice">click to toggle source</span>
322
+
323
+ </div>
324
+
325
+ <div class="method-description">
326
+
327
+ <p>
328
+ Initializes a new instance of an expectation
329
+ </p>
330
+
331
+
332
+
333
+ <div class="method-source-code"
334
+ id="new-source">
335
+ <pre>
336
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 98</span>
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
+ <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
+ <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>
340
+ <span class="ruby-ivar">@any_args</span> = <span class="ruby-keyword kw">true</span>
341
+ <span class="ruby-keyword kw">end</span></pre>
342
+ </div>
343
+
344
+ </div>
345
+
346
+
347
+ </div>
348
+
349
+
350
+ </div>
351
+
352
+ <div id="public-instance-method-details" class="method-section section">
353
+ <h3 class="section-header">Public Instance Methods</h3>
354
+
355
+
356
+ <div id="call-super--method" class="method-detail ">
357
+ <a name="M000035"></a>
358
+
359
+ <div class="method-heading">
360
+
361
+ <span class="method-name">call_super?</span><span
362
+ class="method-args">()</span>
363
+ <span class="method-click-advice">click to toggle source</span>
364
+
365
+ </div>
366
+
367
+ <div class="method-description">
368
+
369
+ <p>
370
+ indicates whether super needs to be called somewhere
371
+ </p>
372
+
373
+
374
+
375
+ <div class="method-source-code"
376
+ id="call-super--source">
377
+ <pre>
378
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 120</span>
379
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_super?</span>
380
+ <span class="ruby-operator">!</span><span class="ruby-ivar">@super</span>.<span class="ruby-identifier">nil?</span>
381
+ <span class="ruby-keyword kw">end</span></pre>
382
+ </div>
383
+
384
+ </div>
385
+
386
+
387
+ </div>
388
+
389
+
390
+ <div id="execute-method" class="method-detail ">
391
+ <a name="M000036"></a>
392
+
393
+ <div class="method-heading">
394
+
395
+ <span class="method-name">execute</span><span
396
+ class="method-args">(*margs)</span>
397
+ <span class="method-click-advice">click to toggle source</span>
398
+
399
+ </div>
400
+
401
+ <div class="method-description">
402
+
403
+ <p>
404
+ executes this expectation with its configuration
405
+ </p>
406
+
407
+
408
+
409
+ <div class="method-source-code"
410
+ id="execute-source">
411
+ <pre>
412
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 125</span>
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
+ <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>
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
+ <span class="ruby-keyword kw">nil</span>
418
+ <span class="ruby-keyword kw">end</span></pre>
419
+ </div>
420
+
421
+ </div>
422
+
423
+
424
+ </div>
425
+
426
+
427
+ <div id="has-error-args--method" class="method-detail ">
428
+ <a name="M000032"></a>
429
+
430
+ <div class="method-heading">
431
+
432
+ <span class="method-name">has_error_args?</span><span
433
+ class="method-args">()</span>
434
+ <span class="method-click-advice">click to toggle source</span>
435
+
436
+ </div>
437
+
438
+ <div class="method-description">
439
+
440
+ <p>
441
+ indicates whether this expecation will raise an event.
442
+ </p>
443
+
444
+
445
+
446
+ <div class="method-source-code"
447
+ id="has-error-args--source">
448
+ <pre>
449
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 105</span>
450
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_error_args?</span>
451
+ <span class="ruby-operator">!</span><span class="ruby-ivar">@error_args</span>.<span class="ruby-identifier">nil?</span>
452
+ <span class="ruby-keyword kw">end</span></pre>
453
+ </div>
454
+
455
+ </div>
456
+
457
+
458
+ </div>
459
+
460
+
461
+ <div id="has-return-value--method" class="method-detail ">
462
+ <a name="M000033"></a>
463
+
464
+ <div class="method-heading">
465
+
466
+ <span class="method-name">has_return_value?</span><span
467
+ class="method-args">()</span>
468
+ <span class="method-click-advice">click to toggle source</span>
469
+
470
+ </div>
471
+
472
+ <div class="method-description">
473
+
474
+ <p>
475
+ indicates whether this expectation will return a value.
476
+ </p>
477
+
478
+
479
+
480
+ <div class="method-source-code"
481
+ id="has-return-value--source">
482
+ <pre>
483
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 110</span>
484
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_return_value?</span>
485
+ <span class="ruby-operator">!</span><span class="ruby-ivar">@return_value</span>.<span class="ruby-identifier">nil?</span>
486
+ <span class="ruby-keyword kw">end</span></pre>
487
+ </div>
488
+
489
+ </div>
490
+
491
+
492
+ </div>
493
+
494
+
495
+ <div id="super-before--method" class="method-detail ">
496
+ <a name="M000034"></a>
497
+
498
+ <div class="method-heading">
499
+
500
+ <span class="method-name">super_before?</span><span
501
+ class="method-args">()</span>
502
+ <span class="method-click-advice">click to toggle source</span>
503
+
504
+ </div>
505
+
506
+ <div class="method-description">
507
+
508
+ <p>
509
+ call the super before the expectation
510
+ </p>
511
+
512
+
513
+
514
+ <div class="method-source-code"
515
+ id="super-before--source">
516
+ <pre>
517
+ <span class="ruby-comment cmt"># File lib/caricature/expectation.rb, line 115</span>
518
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_before?</span>
519
+ <span class="ruby-ivar">@super</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:before</span>
520
+ <span class="ruby-keyword kw">end</span></pre>
521
+ </div>
522
+
523
+ </div>
524
+
525
+
526
+ </div>
527
+
528
+
529
+ </div>
530
+
531
+
532
+ </div>
533
+
534
+
535
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
536
+
537
+ <p>Disabled; run with --debug to generate this.</p>
538
+
539
+ </div>
540
+
541
+ <div id="validator-badges">
542
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
543
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
544
+ Rdoc Generator</a> 1.1.6</small>.</p>
545
+ </div>
546
+
547
+ </body>
548
+ </html>
549
+