mofo 0.1 → 0.1.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.
- data/CHANGELOG +4 -0
- data/lib/microformat.rb +11 -1
- data/lib/microformat/simple.rb +21 -17
- data/lib/mofo/hentry.rb +1 -1
- data/lib/mofo/hreview.rb +0 -2
- data/lib/mofo/rel_tag.rb +0 -1
- data/tests/fixtures/bob.html +69 -0
- data/tests/fixtures/chowhound.html +1052 -0
- data/tests/fixtures/corkd.html +403 -0
- data/tests/fixtures/events.html +39 -0
- data/tests/fixtures/fake.html +1 -0
- data/tests/fixtures/fauxtank.html +535 -0
- data/tests/fixtures/hatom.html +1101 -0
- data/tests/fixtures/simple.html +5 -0
- data/tests/fixtures/upcoming.html +335 -0
- data/tests/format_test.rb +230 -0
- data/tests/hatom_test.rb +39 -0
- data/tests/test_helper.rb +6 -0
- data/tests/xoxo_test.rb +49 -0
- data/vendor/testspec-0.2.0/ChangeLog +120 -0
- data/vendor/testspec-0.2.0/README +206 -0
- data/vendor/testspec-0.2.0/ROADMAP +3 -0
- data/vendor/testspec-0.2.0/Rakefile +86 -0
- data/vendor/testspec-0.2.0/SPECS +101 -0
- data/vendor/testspec-0.2.0/TODO +1 -0
- data/vendor/testspec-0.2.0/bin/specrb +103 -0
- data/vendor/testspec-0.2.0/examples/stack.rb +38 -0
- data/vendor/testspec-0.2.0/examples/stack_spec.rb +119 -0
- data/vendor/testspec-0.2.0/lib/test/spec.rb +366 -0
- data/vendor/testspec-0.2.0/lib/test/spec/dox.rb +114 -0
- data/vendor/testspec-0.2.0/lib/test/spec/rdox.rb +25 -0
- data/vendor/testspec-0.2.0/lib/test/spec/should-output.rb +48 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Kernel.html +105 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Object.html +154 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec.html +132 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/DefinitionError.html +111 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/Should.html +863 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/ShouldNot.html +411 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase.html +220 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/ClassMethods.html +290 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Spec/TestCase/InstanceMethods.html +195 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/RDox/TestRunner.html +222 -0
- data/vendor/testspec-0.2.0/rdoc/classes/Test/Unit/UI/SpecDox/TestRunner.html +468 -0
- data/vendor/testspec-0.2.0/rdoc/created.rid +1 -0
- data/vendor/testspec-0.2.0/rdoc/files/README.html +409 -0
- data/vendor/testspec-0.2.0/rdoc/files/ROADMAP.html +112 -0
- data/vendor/testspec-0.2.0/rdoc/files/SPECS.html +365 -0
- data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/dox_rb.html +108 -0
- data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/rdox_rb.html +108 -0
- data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec/should-output_rb.html +114 -0
- data/vendor/testspec-0.2.0/rdoc/files/lib/test/spec_rb.html +123 -0
- data/vendor/testspec-0.2.0/rdoc/fr_class_index.html +37 -0
- data/vendor/testspec-0.2.0/rdoc/fr_file_index.html +33 -0
- data/vendor/testspec-0.2.0/rdoc/fr_method_index.html +95 -0
- data/vendor/testspec-0.2.0/rdoc/index.html +24 -0
- data/vendor/testspec-0.2.0/rdoc/rdoc-style.css +208 -0
- data/vendor/testspec-0.2.0/test/spec_dox.rb +39 -0
- data/vendor/testspec-0.2.0/test/spec_flexmock.rb +210 -0
- data/vendor/testspec-0.2.0/test/spec_mocha.rb +118 -0
- data/vendor/testspec-0.2.0/test/spec_nestedcontexts.rb +26 -0
- data/vendor/testspec-0.2.0/test/spec_should-output.rb +26 -0
- data/vendor/testspec-0.2.0/test/spec_testspec.rb +311 -0
- data/vendor/testspec-0.2.0/test/spec_testspec_order.rb +26 -0
- data/vendor/testspec-0.2.0/test/test_testunit.rb +21 -0
- metadata +81 -2
@@ -0,0 +1,365 @@
|
|
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>File: SPECS</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="fileHeader">
|
50
|
+
<h1>SPECS</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>SPECS
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Wed Oct 18 18:21:29 CEST 2006</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<h2>TestUnit</h2>
|
73
|
+
<ul>
|
74
|
+
<li>still works on its own
|
75
|
+
|
76
|
+
</li>
|
77
|
+
<li>supports should good enough
|
78
|
+
|
79
|
+
</li>
|
80
|
+
<li>works inside test/spec
|
81
|
+
|
82
|
+
</li>
|
83
|
+
</ul>
|
84
|
+
<h2>SpecDox</h2>
|
85
|
+
<ul>
|
86
|
+
<li>can unmangle Test::Unit names correctly
|
87
|
+
|
88
|
+
</li>
|
89
|
+
<li>can unmangle <a href="../classes/Test/Spec.html">Test::Spec</a> names
|
90
|
+
correctly
|
91
|
+
|
92
|
+
</li>
|
93
|
+
<li>has sensible fallbacks
|
94
|
+
|
95
|
+
</li>
|
96
|
+
</ul>
|
97
|
+
<h2>flexmock</h2>
|
98
|
+
<ul>
|
99
|
+
<li>should handle
|
100
|
+
|
101
|
+
</li>
|
102
|
+
<li>should handle without a block
|
103
|
+
|
104
|
+
</li>
|
105
|
+
<li>should handle with a block
|
106
|
+
|
107
|
+
</li>
|
108
|
+
<li>should have a return value
|
109
|
+
|
110
|
+
</li>
|
111
|
+
<li>should handle missing methods
|
112
|
+
|
113
|
+
</li>
|
114
|
+
<li>should ignore missing methods
|
115
|
+
|
116
|
+
</li>
|
117
|
+
<li>should count correctly
|
118
|
+
|
119
|
+
</li>
|
120
|
+
<li>should raise on bad counts
|
121
|
+
|
122
|
+
</li>
|
123
|
+
<li>should handle undetermined counts
|
124
|
+
|
125
|
+
</li>
|
126
|
+
<li>should handle zero counts
|
127
|
+
|
128
|
+
</li>
|
129
|
+
<li>should have file IO with use
|
130
|
+
|
131
|
+
</li>
|
132
|
+
<li>should have use
|
133
|
+
|
134
|
+
</li>
|
135
|
+
<li>should handle failures during use
|
136
|
+
|
137
|
+
</li>
|
138
|
+
<li>should deal with sequential values
|
139
|
+
|
140
|
+
</li>
|
141
|
+
<li>respond_to? should return false for non handled methods
|
142
|
+
|
143
|
+
</li>
|
144
|
+
<li>respond_to? should return true for explicit methods
|
145
|
+
|
146
|
+
</li>
|
147
|
+
<li>respond_to? should return true when ignoring_missing
|
148
|
+
|
149
|
+
</li>
|
150
|
+
<li>respond_to? should return true for missing_methods when
|
151
|
+
should_ignore_missing
|
152
|
+
|
153
|
+
</li>
|
154
|
+
<li>should raise error on unknown method proc
|
155
|
+
|
156
|
+
</li>
|
157
|
+
<li>should return callable proc on method
|
158
|
+
|
159
|
+
</li>
|
160
|
+
<li>should return do nothing proc for missing methods
|
161
|
+
|
162
|
+
</li>
|
163
|
+
<li>works with test/spec
|
164
|
+
|
165
|
+
</li>
|
166
|
+
</ul>
|
167
|
+
<h2>mocha</h2>
|
168
|
+
<ul>
|
169
|
+
<li>works with test/spec
|
170
|
+
|
171
|
+
</li>
|
172
|
+
<li>works with test/spec and Enterprise example
|
173
|
+
|
174
|
+
</li>
|
175
|
+
</ul>
|
176
|
+
<h2>stubba</h2>
|
177
|
+
<ul>
|
178
|
+
<li>works with test/spec and instance method stubbing
|
179
|
+
|
180
|
+
</li>
|
181
|
+
<li>works with test/spec and class method stubbing
|
182
|
+
|
183
|
+
</li>
|
184
|
+
<li>works with test/spec and global instance method stubbing
|
185
|
+
|
186
|
+
</li>
|
187
|
+
</ul>
|
188
|
+
<h2>Outer context</h2>
|
189
|
+
<h3>Inner context</h3>
|
190
|
+
<ul>
|
191
|
+
<li>is nested
|
192
|
+
|
193
|
+
</li>
|
194
|
+
<li>has multiple empty specifications
|
195
|
+
|
196
|
+
</li>
|
197
|
+
</ul>
|
198
|
+
<h3>Second Inner context</h3>
|
199
|
+
<ul>
|
200
|
+
<li>is indented properly
|
201
|
+
|
202
|
+
</li>
|
203
|
+
<li>still runs in order of definition
|
204
|
+
|
205
|
+
</li>
|
206
|
+
</ul>
|
207
|
+
<h4>Inmost context</h4>
|
208
|
+
<ul>
|
209
|
+
<li>works too!
|
210
|
+
|
211
|
+
</li>
|
212
|
+
<li>whoo!
|
213
|
+
|
214
|
+
</li>
|
215
|
+
</ul>
|
216
|
+
<h2>should.output</h2>
|
217
|
+
<ul>
|
218
|
+
<li>works for print
|
219
|
+
|
220
|
+
</li>
|
221
|
+
<li>works for puts
|
222
|
+
|
223
|
+
</li>
|
224
|
+
<li>works with readline
|
225
|
+
|
226
|
+
</li>
|
227
|
+
</ul>
|
228
|
+
<h2>test/spec</h2>
|
229
|
+
<ul>
|
230
|
+
<li>has should.satisfy
|
231
|
+
|
232
|
+
</li>
|
233
|
+
<li>has should.equal
|
234
|
+
|
235
|
+
</li>
|
236
|
+
<li>has should.raise
|
237
|
+
|
238
|
+
</li>
|
239
|
+
<li>should.raise should return the exception
|
240
|
+
|
241
|
+
</li>
|
242
|
+
<li>has should.be_an_instance_of
|
243
|
+
|
244
|
+
</li>
|
245
|
+
<li>has should.be_nil
|
246
|
+
|
247
|
+
</li>
|
248
|
+
<li>has should.include
|
249
|
+
|
250
|
+
</li>
|
251
|
+
<li>has should.be_a_kind_of
|
252
|
+
|
253
|
+
</li>
|
254
|
+
<li>has should.match
|
255
|
+
|
256
|
+
</li>
|
257
|
+
<li>has should.be
|
258
|
+
|
259
|
+
</li>
|
260
|
+
<li>has should.not.raise
|
261
|
+
|
262
|
+
</li>
|
263
|
+
<li>has should.not.be
|
264
|
+
|
265
|
+
</li>
|
266
|
+
<li>has should.not.equal
|
267
|
+
|
268
|
+
</li>
|
269
|
+
<li>has should.not.match
|
270
|
+
|
271
|
+
</li>
|
272
|
+
<li>has should.throw
|
273
|
+
|
274
|
+
</li>
|
275
|
+
<li>has should.not.throw
|
276
|
+
|
277
|
+
</li>
|
278
|
+
<li>has should.respond_to
|
279
|
+
|
280
|
+
</li>
|
281
|
+
<li>has should.be_close
|
282
|
+
|
283
|
+
</li>
|
284
|
+
<li>multiple negation works
|
285
|
+
|
286
|
+
</li>
|
287
|
+
<li>has should.<predicate>
|
288
|
+
|
289
|
+
</li>
|
290
|
+
<li>has should <operator> (>, >=, <, <=, ===)
|
291
|
+
|
292
|
+
</li>
|
293
|
+
<li>is robust against careless users
|
294
|
+
|
295
|
+
</li>
|
296
|
+
</ul>
|
297
|
+
<h2>setup/teardown</h2>
|
298
|
+
<ul>
|
299
|
+
<li>run in the right order
|
300
|
+
|
301
|
+
</li>
|
302
|
+
</ul>
|
303
|
+
<h2>contexts</h2>
|
304
|
+
<ul>
|
305
|
+
<li>are defined in class scope
|
306
|
+
|
307
|
+
</li>
|
308
|
+
<li>can include modules
|
309
|
+
|
310
|
+
</li>
|
311
|
+
</ul>
|
312
|
+
<h2>Context First</h2>
|
313
|
+
<ul>
|
314
|
+
<li>runs before Second
|
315
|
+
|
316
|
+
</li>
|
317
|
+
</ul>
|
318
|
+
<h2>Context Second</h2>
|
319
|
+
<ul>
|
320
|
+
<li>runs before Last
|
321
|
+
|
322
|
+
</li>
|
323
|
+
</ul>
|
324
|
+
<h2>Context Last</h2>
|
325
|
+
<ul>
|
326
|
+
<li>runs last
|
327
|
+
|
328
|
+
</li>
|
329
|
+
</ul>
|
330
|
+
<p>
|
331
|
+
70 specifications (267 requirements), 0 failures
|
332
|
+
</p>
|
333
|
+
|
334
|
+
</div>
|
335
|
+
|
336
|
+
|
337
|
+
</div>
|
338
|
+
|
339
|
+
|
340
|
+
</div>
|
341
|
+
|
342
|
+
|
343
|
+
<!-- if includes -->
|
344
|
+
|
345
|
+
<div id="section">
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
<!-- if method_list -->
|
355
|
+
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
|
360
|
+
<div id="validator-badges">
|
361
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
362
|
+
</div>
|
363
|
+
|
364
|
+
</body>
|
365
|
+
</html>
|
@@ -0,0 +1,108 @@
|
|
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>File: dox.rb</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="fileHeader">
|
50
|
+
<h1>dox.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/test/spec/dox.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Wed Oct 18 18:21:27 CEST 2006</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
test/unit/ui/console/testrunner
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|