mofo 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/CHANGELOG +6 -0
  2. data/Manifest.txt +55 -0
  3. data/Rakefile +32 -0
  4. data/init.rb +2 -0
  5. data/lib/microformat.rb +39 -6
  6. data/lib/mofo/hentry.rb +4 -0
  7. data/site/index.html +382 -0
  8. data/site/mofo-logo.png +0 -0
  9. data/site/mootools.v1.00.js +2 -0
  10. data/site/style.css +159 -0
  11. data/test/base_url_test.rb +22 -0
  12. data/test/fixtures/corkd.html +1 -1
  13. data/test/hatom_test.rb +1 -1
  14. data/test/hreview_test.rb +4 -3
  15. data/test/include_pattern_test.rb +1 -1
  16. data/test/test_helper.rb +17 -6
  17. metadata +63 -115
  18. data/test/format_test.rb +0 -230
  19. data/vendor/testspec-0.3.0/ChangeLog +0 -177
  20. data/vendor/testspec-0.3.0/README +0 -289
  21. data/vendor/testspec-0.3.0/ROADMAP +0 -1
  22. data/vendor/testspec-0.3.0/Rakefile +0 -151
  23. data/vendor/testspec-0.3.0/SPECS +0 -108
  24. data/vendor/testspec-0.3.0/TODO +0 -2
  25. data/vendor/testspec-0.3.0/bin/specrb +0 -104
  26. data/vendor/testspec-0.3.0/doc/classes/Kernel.html +0 -140
  27. data/vendor/testspec-0.3.0/doc/classes/Object.html +0 -155
  28. data/vendor/testspec-0.3.0/doc/classes/Test/Spec.html +0 -128
  29. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/CustomShould.html +0 -236
  30. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/DefinitionError.html +0 -111
  31. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/Should.html +0 -884
  32. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/ShouldNot.html +0 -487
  33. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/TestCase.html +0 -220
  34. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/TestCase/ClassMethods.html +0 -318
  35. data/vendor/testspec-0.3.0/doc/classes/Test/Spec/TestCase/InstanceMethods.html +0 -195
  36. data/vendor/testspec-0.3.0/doc/classes/Test/Unit/UI/RDox/TestRunner.html +0 -222
  37. data/vendor/testspec-0.3.0/doc/classes/Test/Unit/UI/SpecDox/TestRunner.html +0 -476
  38. data/vendor/testspec-0.3.0/doc/created.rid +0 -1
  39. data/vendor/testspec-0.3.0/doc/files/README.html +0 -516
  40. data/vendor/testspec-0.3.0/doc/files/ROADMAP.html +0 -109
  41. data/vendor/testspec-0.3.0/doc/files/SPECS.html +0 -386
  42. data/vendor/testspec-0.3.0/doc/files/lib/test/spec/dox_rb.html +0 -108
  43. data/vendor/testspec-0.3.0/doc/files/lib/test/spec/rdox_rb.html +0 -108
  44. data/vendor/testspec-0.3.0/doc/files/lib/test/spec/should-output_rb.html +0 -115
  45. data/vendor/testspec-0.3.0/doc/files/lib/test/spec_rb.html +0 -123
  46. data/vendor/testspec-0.3.0/doc/fr_class_index.html +0 -38
  47. data/vendor/testspec-0.3.0/doc/fr_file_index.html +0 -33
  48. data/vendor/testspec-0.3.0/doc/fr_method_index.html +0 -102
  49. data/vendor/testspec-0.3.0/doc/index.html +0 -24
  50. data/vendor/testspec-0.3.0/doc/rdoc-style.css +0 -208
  51. data/vendor/testspec-0.3.0/examples/stack.rb +0 -38
  52. data/vendor/testspec-0.3.0/examples/stack_spec.rb +0 -119
  53. data/vendor/testspec-0.3.0/lib/test/spec.rb +0 -490
  54. data/vendor/testspec-0.3.0/lib/test/spec/dox.rb +0 -122
  55. data/vendor/testspec-0.3.0/lib/test/spec/rdox.rb +0 -25
  56. data/vendor/testspec-0.3.0/lib/test/spec/should-output.rb +0 -49
  57. data/vendor/testspec-0.3.0/test/spec_dox.rb +0 -39
  58. data/vendor/testspec-0.3.0/test/spec_flexmock.rb +0 -210
  59. data/vendor/testspec-0.3.0/test/spec_mocha.rb +0 -118
  60. data/vendor/testspec-0.3.0/test/spec_nestedcontexts.rb +0 -26
  61. data/vendor/testspec-0.3.0/test/spec_should-output.rb +0 -26
  62. data/vendor/testspec-0.3.0/test/spec_testspec.rb +0 -522
  63. data/vendor/testspec-0.3.0/test/spec_testspec_order.rb +0 -26
  64. data/vendor/testspec-0.3.0/test/test_testunit.rb +0 -21
@@ -1,487 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Test::Spec::ShouldNot</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Test::Spec::ShouldNot</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/test/spec_rb.html">
59
- lib/test/spec.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000017">==</a>&nbsp;&nbsp;
92
- <a href="#M000020">=~</a>&nbsp;&nbsp;
93
- <a href="#M000021">_raise</a>&nbsp;&nbsp;
94
- <a href="#M000018">be</a>&nbsp;&nbsp;
95
- <a href="#M000024">be_nil</a>&nbsp;&nbsp;
96
- <a href="#M000016">equal</a>&nbsp;&nbsp;
97
- <a href="#M000019">match</a>&nbsp;&nbsp;
98
- <a href="#M000027">method_missing</a>&nbsp;&nbsp;
99
- <a href="#M000014">new</a>&nbsp;&nbsp;
100
- <a href="#M000023">nil</a>&nbsp;&nbsp;
101
- <a href="#M000025">not</a>&nbsp;&nbsp;
102
- <a href="#M000026">pass</a>&nbsp;&nbsp;
103
- <a href="#M000015">satisfy</a>&nbsp;&nbsp;
104
- <a href="#M000022">throw</a>&nbsp;&nbsp;
105
- </div>
106
- </div>
107
-
108
- </div>
109
-
110
-
111
- <!-- if includes -->
112
- <div id="includes">
113
- <h3 class="section-bar">Included Modules</h3>
114
-
115
- <div id="includes-list">
116
- <span class="include-name">Test::Unit::Assertions</span>
117
- </div>
118
- </div>
119
-
120
- <div id="section">
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <!-- if method_list -->
130
- <div id="methods">
131
- <h3 class="section-bar">Public Class methods</h3>
132
-
133
- <div id="method-M000014" class="method-detail">
134
- <a name="M000014"></a>
135
-
136
- <div class="method-heading">
137
- <a href="#M000014" class="method-signature">
138
- <span class="method-name">new</span><span class="method-args">(object, message=nil)</span>
139
- </a>
140
- </div>
141
-
142
- <div class="method-description">
143
- <p><a class="source-toggle" href="#"
144
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
145
- <div class="method-source-code" id="M000014-source">
146
- <pre>
147
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 196</span>
148
- 196: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">message</span>=<span class="ruby-keyword kw">nil</span>)
149
- 197: <span class="ruby-ivar">@object</span> = <span class="ruby-identifier">object</span>
150
- 198: <span class="ruby-ivar">@message</span> = <span class="ruby-identifier">message</span>
151
- 199: <span class="ruby-keyword kw">end</span>
152
- </pre>
153
- </div>
154
- </div>
155
- </div>
156
-
157
- <h3 class="section-bar">Public Instance methods</h3>
158
-
159
- <div id="method-M000017" class="method-detail">
160
- <a name="M000017"></a>
161
-
162
- <div class="method-heading">
163
- <span class="method-name">==</span><span class="method-args">(value)</span>
164
- </div>
165
-
166
- <div class="method-description">
167
- <p>
168
- Alias for <a href="ShouldNot.html#M000016">equal</a>
169
- </p>
170
- </div>
171
- </div>
172
-
173
- <div id="method-M000020" class="method-detail">
174
- <a name="M000020"></a>
175
-
176
- <div class="method-heading">
177
- <span class="method-name">=~</span><span class="method-args">(value)</span>
178
- </div>
179
-
180
- <div class="method-description">
181
- <p>
182
- Alias for <a href="ShouldNot.html#M000019">match</a>
183
- </p>
184
- </div>
185
- </div>
186
-
187
- <div id="method-M000021" class="method-detail">
188
- <a name="M000021"></a>
189
-
190
- <div class="method-heading">
191
- <a href="#M000021" class="method-signature">
192
- <span class="method-name">_raise</span><span class="method-args">(*args)</span>
193
- </a>
194
- </div>
195
-
196
- <div class="method-description">
197
- <p><a class="source-toggle" href="#"
198
- onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
199
- <div class="method-source-code" id="M000021-source">
200
- <pre>
201
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 233</span>
202
- 233: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_raise</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
203
- 234: <span class="ruby-identifier">assert_nothing_raised</span>(<span class="ruby-operator">*</span>(<span class="ruby-identifier">args</span><span class="ruby-operator">+</span>[<span class="ruby-ivar">@message</span>]), <span class="ruby-operator">&amp;</span><span class="ruby-ivar">@object</span>)
204
- 235: <span class="ruby-keyword kw">end</span>
205
- </pre>
206
- </div>
207
- </div>
208
- </div>
209
-
210
- <div id="method-M000018" class="method-detail">
211
- <a name="M000018"></a>
212
-
213
- <div class="method-heading">
214
- <a href="#M000018" class="method-signature">
215
- <span class="method-name">be</span><span class="method-args">(*value)</span>
216
- </a>
217
- </div>
218
-
219
- <div class="method-description">
220
- <p><a class="source-toggle" href="#"
221
- onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000018-source">
223
- <pre>
224
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 212</span>
225
- 212: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">be</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">value</span>)
226
- 213: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">size</span>
227
- 214: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span>
228
- 215: <span class="ruby-keyword kw">self</span>
229
- 216: <span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span>
230
- 217: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">CustomShould</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">first</span>
231
- 218: <span class="ruby-identifier">pass</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">first</span>
232
- 219: <span class="ruby-keyword kw">else</span>
233
- 220: <span class="ruby-identifier">assert_not_same</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">first</span>, <span class="ruby-ivar">@object</span>, <span class="ruby-ivar">@message</span>
234
- 221: <span class="ruby-keyword kw">end</span>
235
- 222: <span class="ruby-keyword kw">else</span>
236
- 223: <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;should.be needs zero or one argument&quot;</span>
237
- 224: <span class="ruby-keyword kw">end</span>
238
- 225: <span class="ruby-keyword kw">end</span>
239
- </pre>
240
- </div>
241
- </div>
242
- </div>
243
-
244
- <div id="method-M000024" class="method-detail">
245
- <a name="M000024"></a>
246
-
247
- <div class="method-heading">
248
- <a href="#M000024" class="method-signature">
249
- <span class="method-name">be_nil</span><span class="method-args">()</span>
250
- </a>
251
- </div>
252
-
253
- <div class="method-description">
254
- <p><a class="source-toggle" href="#"
255
- onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
256
- <div class="method-source-code" id="M000024-source">
257
- <pre>
258
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 245</span>
259
- 245: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">be_nil</span>
260
- 246: <span class="ruby-identifier">warn</span> <span class="ruby-value str">&quot;Test::Spec::ShouldNot#be_nil is deprecated and will be removed in future versions.&quot;</span>
261
- 247: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">nil</span>
262
- 248: <span class="ruby-keyword kw">end</span>
263
- </pre>
264
- </div>
265
- </div>
266
- </div>
267
-
268
- <div id="method-M000016" class="method-detail">
269
- <a name="M000016"></a>
270
-
271
- <div class="method-heading">
272
- <a href="#M000016" class="method-signature">
273
- <span class="method-name">equal</span><span class="method-args">(value)</span>
274
- </a>
275
- </div>
276
-
277
- <div class="method-description">
278
- <p><a class="source-toggle" href="#"
279
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
280
- <div class="method-source-code" id="M000016-source">
281
- <pre>
282
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 207</span>
283
- 207: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">equal</span>(<span class="ruby-identifier">value</span>)
284
- 208: <span class="ruby-identifier">assert_not_equal</span> <span class="ruby-identifier">value</span>, <span class="ruby-ivar">@object</span>, <span class="ruby-ivar">@message</span>
285
- 209: <span class="ruby-keyword kw">end</span>
286
- </pre>
287
- </div>
288
- </div>
289
- </div>
290
-
291
- <div id="method-M000019" class="method-detail">
292
- <a name="M000019"></a>
293
-
294
- <div class="method-heading">
295
- <a href="#M000019" class="method-signature">
296
- <span class="method-name">match</span><span class="method-args">(value)</span>
297
- </a>
298
- </div>
299
-
300
- <div class="method-description">
301
- <p><a class="source-toggle" href="#"
302
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
303
- <div class="method-source-code" id="M000019-source">
304
- <pre>
305
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 227</span>
306
- 227: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span>(<span class="ruby-identifier">value</span>)
307
- 228: <span class="ruby-comment cmt"># Icky Regexp check</span>
308
- 229: <span class="ruby-identifier">assert_no_match</span> <span class="ruby-identifier">value</span>, <span class="ruby-ivar">@object</span>, <span class="ruby-ivar">@message</span>
309
- 230: <span class="ruby-keyword kw">end</span>
310
- </pre>
311
- </div>
312
- </div>
313
- </div>
314
-
315
- <div id="method-M000027" class="method-detail">
316
- <a name="M000027"></a>
317
-
318
- <div class="method-heading">
319
- <a href="#M000027" class="method-signature">
320
- <span class="method-name">method_missing</span><span class="method-args">(name, *args)</span>
321
- </a>
322
- </div>
323
-
324
- <div class="method-description">
325
- <p><a class="source-toggle" href="#"
326
- onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
327
- <div class="method-source-code" id="M000027-source">
328
- <pre>
329
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 269</span>
330
- 269: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
331
- 270: <span class="ruby-comment cmt"># This will make raise call Kernel.raise, and self.raise call _raise.</span>
332
- 271: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_raise</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:raise</span>
333
- 272:
334
- 273: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-node">&quot;#{name}?&quot;</span>)
335
- 274: <span class="ruby-identifier">assert_block</span>(<span class="ruby-node">&quot;#{name}? expected to be false. #{@message}&quot;</span>) {
336
- 275: <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-node">&quot;#{name}?&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
337
- 276: }
338
- 277: <span class="ruby-keyword kw">else</span>
339
- 278: <span class="ruby-keyword kw">super</span>
340
- 279: <span class="ruby-keyword kw">end</span>
341
- 280: <span class="ruby-keyword kw">end</span>
342
- </pre>
343
- </div>
344
- </div>
345
- </div>
346
-
347
- <div id="method-M000023" class="method-detail">
348
- <a name="M000023"></a>
349
-
350
- <div class="method-heading">
351
- <a href="#M000023" class="method-signature">
352
- <span class="method-name">nil</span><span class="method-args">()</span>
353
- </a>
354
- </div>
355
-
356
- <div class="method-description">
357
- <p><a class="source-toggle" href="#"
358
- onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
359
- <div class="method-source-code" id="M000023-source">
360
- <pre>
361
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 241</span>
362
- 241: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">nil</span>
363
- 242: <span class="ruby-identifier">assert_not_nil</span> <span class="ruby-ivar">@object</span>, <span class="ruby-ivar">@message</span>
364
- 243: <span class="ruby-keyword kw">end</span>
365
- </pre>
366
- </div>
367
- </div>
368
- </div>
369
-
370
- <div id="method-M000025" class="method-detail">
371
- <a name="M000025"></a>
372
-
373
- <div class="method-heading">
374
- <a href="#M000025" class="method-signature">
375
- <span class="method-name">not</span><span class="method-args">(*args)</span>
376
- </a>
377
- </div>
378
-
379
- <div class="method-description">
380
- <p><a class="source-toggle" href="#"
381
- onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
382
- <div class="method-source-code" id="M000025-source">
383
- <pre>
384
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 250</span>
385
- 250: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">not</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
386
- 251: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span>
387
- 252: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span>
388
- 253: <span class="ruby-constant">Should</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@object</span>, <span class="ruby-ivar">@message</span>)
389
- 254: <span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span>
390
- 255: <span class="ruby-constant">Should</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@object</span>, <span class="ruby-ivar">@message</span>).<span class="ruby-identifier">pass</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>)
391
- 256: <span class="ruby-keyword kw">else</span>
392
- 257: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;#not takes zero or one argument(s).&quot;</span>
393
- 258: <span class="ruby-keyword kw">end</span>
394
- 259: <span class="ruby-keyword kw">end</span>
395
- </pre>
396
- </div>
397
- </div>
398
- </div>
399
-
400
- <div id="method-M000026" class="method-detail">
401
- <a name="M000026"></a>
402
-
403
- <div class="method-heading">
404
- <a href="#M000026" class="method-signature">
405
- <span class="method-name">pass</span><span class="method-args">(custom)</span>
406
- </a>
407
- </div>
408
-
409
- <div class="method-description">
410
- <p><a class="source-toggle" href="#"
411
- onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
412
- <div class="method-source-code" id="M000026-source">
413
- <pre>
414
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 261</span>
415
- 261: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pass</span>(<span class="ruby-identifier">custom</span>)
416
- 262: <span class="ruby-identifier">_wrap_assertion</span> {
417
- 263: <span class="ruby-keyword kw">begin</span>
418
- 264: <span class="ruby-identifier">assert</span> <span class="ruby-operator">!</span><span class="ruby-identifier">custom</span>.<span class="ruby-identifier">matches?</span>(<span class="ruby-ivar">@object</span>), <span class="ruby-ivar">@message</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">custom</span>.<span class="ruby-identifier">failure_message</span>
419
- 265: <span class="ruby-keyword kw">end</span>
420
- 266: }
421
- 267: <span class="ruby-keyword kw">end</span>
422
- </pre>
423
- </div>
424
- </div>
425
- </div>
426
-
427
- <div id="method-M000015" class="method-detail">
428
- <a name="M000015"></a>
429
-
430
- <div class="method-heading">
431
- <a href="#M000015" class="method-signature">
432
- <span class="method-name">satisfy</span><span class="method-args">() {|@object| ...}</span>
433
- </a>
434
- </div>
435
-
436
- <div class="method-description">
437
- <p><a class="source-toggle" href="#"
438
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
439
- <div class="method-source-code" id="M000015-source">
440
- <pre>
441
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 201</span>
442
- 201: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">satisfy</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
443
- 202: <span class="ruby-identifier">assert_block</span>(<span class="ruby-ivar">@message</span> <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;not.satisfy block succeded.&quot;</span>) {
444
- 203: <span class="ruby-keyword kw">not</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@object</span>
445
- 204: }
446
- 205: <span class="ruby-keyword kw">end</span>
447
- </pre>
448
- </div>
449
- </div>
450
- </div>
451
-
452
- <div id="method-M000022" class="method-detail">
453
- <a name="M000022"></a>
454
-
455
- <div class="method-heading">
456
- <a href="#M000022" class="method-signature">
457
- <span class="method-name">throw</span><span class="method-args">()</span>
458
- </a>
459
- </div>
460
-
461
- <div class="method-description">
462
- <p><a class="source-toggle" href="#"
463
- onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
464
- <div class="method-source-code" id="M000022-source">
465
- <pre>
466
- <span class="ruby-comment cmt"># File lib/test/spec.rb, line 237</span>
467
- 237: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">throw</span>
468
- 238: <span class="ruby-identifier">assert_nothing_thrown</span>(<span class="ruby-ivar">@message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-ivar">@object</span>)
469
- 239: <span class="ruby-keyword kw">end</span>
470
- </pre>
471
- </div>
472
- </div>
473
- </div>
474
-
475
-
476
- </div>
477
-
478
-
479
- </div>
480
-
481
-
482
- <div id="validator-badges">
483
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
484
- </div>
485
-
486
- </body>
487
- </html>