dfect 0.1.0 → 1.0.0
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/doc/api/classes/Dfect.html +138 -132
- data/doc/api/classes/Kernel.html +322 -0
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/dfect/mini_rb.html +77 -0
- data/doc/api/files/lib/dfect/spec_rb.html +75 -0
- data/doc/api/files/lib/dfect/unit_rb.html +73 -0
- data/doc/api/files/lib/dfect_rb.html +1 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/api/panel/tree.js +1 -1
- data/doc/history.erb +49 -1
- data/doc/index.erb +5 -0
- data/doc/index.xhtml +187 -127
- data/doc/intro.erb +48 -12
- data/doc/setup.erb +7 -18
- data/doc/usage.erb +5 -0
- data/lib/dfect.rb +27 -14
- data/lib/dfect/mini.rb +91 -0
- data/lib/dfect/spec.rb +39 -0
- data/lib/dfect/unit.rb +105 -0
- data/rakefile +3 -3
- data/test/dfect.rb +9 -21
- metadata +11 -4
@@ -0,0 +1,322 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<title>Kernel</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
+
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
|
9
|
+
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
|
10
|
+
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
<script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
<div class="banner">
|
17
|
+
<h1>
|
18
|
+
<span class="type">Module</span>
|
19
|
+
Kernel
|
20
|
+
|
21
|
+
</h1>
|
22
|
+
<ul class="files">
|
23
|
+
|
24
|
+
<li><a href="../files/lib/dfect/mini_rb.html">lib/dfect/mini.rb</a></li>
|
25
|
+
|
26
|
+
<li><a href="../files/lib/dfect/unit_rb.html">lib/dfect/unit.rb</a></li>
|
27
|
+
|
28
|
+
<li><a href="../files/lib/dfect/spec_rb.html">lib/dfect/spec.rb</a></li>
|
29
|
+
|
30
|
+
</ul>
|
31
|
+
</div>
|
32
|
+
<div id="bodyContent">
|
33
|
+
<div id="content">
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<div class="sectiontitle">Methods</div>
|
44
|
+
<dl class="methods">
|
45
|
+
|
46
|
+
<dt>A</dt>
|
47
|
+
<dd>
|
48
|
+
<ul>
|
49
|
+
|
50
|
+
<li><a href="#M000006">after</a></li>
|
51
|
+
|
52
|
+
</ul>
|
53
|
+
</dd>
|
54
|
+
|
55
|
+
<dt>B</dt>
|
56
|
+
<dd>
|
57
|
+
<ul>
|
58
|
+
|
59
|
+
<li><a href="#M000005">before</a></li>
|
60
|
+
|
61
|
+
</ul>
|
62
|
+
</dd>
|
63
|
+
|
64
|
+
<dt>C</dt>
|
65
|
+
<dd>
|
66
|
+
<ul>
|
67
|
+
|
68
|
+
<li><a href="#M000003">context</a></li>
|
69
|
+
|
70
|
+
</ul>
|
71
|
+
</dd>
|
72
|
+
|
73
|
+
<dt>D</dt>
|
74
|
+
<dd>
|
75
|
+
<ul>
|
76
|
+
|
77
|
+
<li><a href="#M000002">describe</a></li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</dd>
|
81
|
+
|
82
|
+
<dt>I</dt>
|
83
|
+
<dd>
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li><a href="#M000004">it</a></li>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</dd>
|
90
|
+
|
91
|
+
<dt>S</dt>
|
92
|
+
<dd>
|
93
|
+
<ul>
|
94
|
+
|
95
|
+
<li><a href="#M000000">setup</a></li>
|
96
|
+
|
97
|
+
</ul>
|
98
|
+
</dd>
|
99
|
+
|
100
|
+
<dt>T</dt>
|
101
|
+
<dd>
|
102
|
+
<ul>
|
103
|
+
|
104
|
+
<li><a href="#M000001">teardown</a></li>
|
105
|
+
|
106
|
+
</ul>
|
107
|
+
</dd>
|
108
|
+
|
109
|
+
</dl>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<div class="sectiontitle">Instance Public methods</div>
|
124
|
+
|
125
|
+
<div class="method">
|
126
|
+
<div class="title" id="M000006">
|
127
|
+
|
128
|
+
<a name="M000006"></a><b>after</b>(what, &block)
|
129
|
+
|
130
|
+
</div>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<div class="sourcecode">
|
136
|
+
<p class="source-link">
|
137
|
+
Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
|
138
|
+
|
139
|
+
| <a href="http://github.com/sunaku/dfect/blob/93bb95b353cf0667efbac81830d2bc83b2919a15/lib/dfect/spec.rb#L29" target="_blank" class="github_url">on GitHub</a>
|
140
|
+
|
141
|
+
</p>
|
142
|
+
<div id="M000006_source" class="dyn-source">
|
143
|
+
<pre><span class="ruby-comment cmt"># File lib/dfect/spec.rb, line 29</span>
|
144
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after</span> <span class="ruby-identifier">what</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
145
|
+
<span class="ruby-identifier">meth</span> =
|
146
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">what</span>
|
147
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:each</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:></span>
|
148
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:all</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:>></span>
|
149
|
+
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-identifier">what</span>
|
150
|
+
<span class="ruby-keyword kw">end</span>
|
151
|
+
|
152
|
+
<span class="ruby-constant">Dfect</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">meth</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
153
|
+
<span class="ruby-keyword kw">end</span></pre>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
<div class="method">
|
160
|
+
<div class="title" id="M000005">
|
161
|
+
|
162
|
+
<a name="M000005"></a><b>before</b>(what, &block)
|
163
|
+
|
164
|
+
</div>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<div class="sourcecode">
|
170
|
+
<p class="source-link">
|
171
|
+
Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
|
172
|
+
|
173
|
+
| <a href="http://github.com/sunaku/dfect/blob/93bb95b353cf0667efbac81830d2bc83b2919a15/lib/dfect/spec.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
174
|
+
|
175
|
+
</p>
|
176
|
+
<div id="M000005_source" class="dyn-source">
|
177
|
+
<pre><span class="ruby-comment cmt"># File lib/dfect/spec.rb, line 18</span>
|
178
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before</span> <span class="ruby-identifier">what</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
179
|
+
<span class="ruby-identifier">meth</span> =
|
180
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">what</span>
|
181
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:each</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:<</span>
|
182
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:all</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:<<</span>
|
183
|
+
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-identifier">what</span>
|
184
|
+
<span class="ruby-keyword kw">end</span>
|
185
|
+
|
186
|
+
<span class="ruby-constant">Dfect</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">meth</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
187
|
+
<span class="ruby-keyword kw">end</span></pre>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
</div>
|
192
|
+
|
193
|
+
<div class="method">
|
194
|
+
<div class="title" id="M000003">
|
195
|
+
|
196
|
+
<a name="M000003"></a><b>context</b>(*args, &block)
|
197
|
+
|
198
|
+
</div>
|
199
|
+
|
200
|
+
<div class="description">
|
201
|
+
<p>
|
202
|
+
Alias for <a href="Kernel.html#M000002">describe</a>
|
203
|
+
</p>
|
204
|
+
|
205
|
+
</div>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div class="method">
|
212
|
+
<div class="title" id="M000002">
|
213
|
+
|
214
|
+
<a name="M000002"></a><b>describe</b>(*args, &block)
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
|
219
|
+
<div class="aka">
|
220
|
+
This method is also aliased as
|
221
|
+
|
222
|
+
<a href="Kernel.html#M000003">context</a>
|
223
|
+
|
224
|
+
<a href="Kernel.html#M000004">it</a>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<div class="sourcecode">
|
231
|
+
<p class="source-link">
|
232
|
+
Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
|
233
|
+
|
234
|
+
| <a href="http://github.com/sunaku/dfect/blob/93bb95b353cf0667efbac81830d2bc83b2919a15/lib/dfect/spec.rb#L11" target="_blank" class="github_url">on GitHub</a>
|
235
|
+
|
236
|
+
</p>
|
237
|
+
<div id="M000002_source" class="dyn-source">
|
238
|
+
<pre><span class="ruby-comment cmt"># File lib/dfect/spec.rb, line 11</span>
|
239
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
240
|
+
<span class="ruby-constant">Dfect</span>.<span class="ruby-constant">D</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>), <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
241
|
+
<span class="ruby-keyword kw">end</span></pre>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div class="method">
|
248
|
+
<div class="title" id="M000004">
|
249
|
+
|
250
|
+
<a name="M000004"></a><b>it</b>(*args, &block)
|
251
|
+
|
252
|
+
</div>
|
253
|
+
|
254
|
+
<div class="description">
|
255
|
+
<p>
|
256
|
+
Alias for <a href="Kernel.html#M000002">describe</a>
|
257
|
+
</p>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div class="method">
|
266
|
+
<div class="title" id="M000000">
|
267
|
+
|
268
|
+
<a name="M000000"></a><b>setup</b>(&block)
|
269
|
+
|
270
|
+
</div>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<div class="sourcecode">
|
276
|
+
<p class="source-link">
|
277
|
+
Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
|
278
|
+
|
279
|
+
| <a href="http://github.com/sunaku/dfect/blob/93bb95b353cf0667efbac81830d2bc83b2919a15/lib/dfect/unit.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
280
|
+
|
281
|
+
</p>
|
282
|
+
<div id="M000000_source" class="dyn-source">
|
283
|
+
<pre><span class="ruby-comment cmt"># File lib/dfect/unit.rb, line 10</span>
|
284
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
285
|
+
<span class="ruby-constant">Dfect</span>.<span class="ruby-operator"><</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
286
|
+
<span class="ruby-keyword kw">end</span></pre>
|
287
|
+
</div>
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
<div class="method">
|
293
|
+
<div class="title" id="M000001">
|
294
|
+
|
295
|
+
<a name="M000001"></a><b>teardown</b>(&block)
|
296
|
+
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<div class="sourcecode">
|
303
|
+
<p class="source-link">
|
304
|
+
Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
|
305
|
+
|
306
|
+
| <a href="http://github.com/sunaku/dfect/blob/93bb95b353cf0667efbac81830d2bc83b2919a15/lib/dfect/unit.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
307
|
+
|
308
|
+
</p>
|
309
|
+
<div id="M000001_source" class="dyn-source">
|
310
|
+
<pre><span class="ruby-comment cmt"># File lib/dfect/unit.rb, line 14</span>
|
311
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
312
|
+
<span class="ruby-constant">Dfect</span>.<span class="ruby-operator">></span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
313
|
+
<span class="ruby-keyword kw">end</span></pre>
|
314
|
+
</div>
|
315
|
+
</div>
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
</div>
|
320
|
+
</div>
|
321
|
+
</body>
|
322
|
+
</html>
|
data/doc/api/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Mon, 04 May 2009 01:17:57 -0700
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<title>mini.rb</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
|
9
|
+
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
|
10
|
+
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
<div class="banner">
|
17
|
+
<h1>
|
18
|
+
mini.rb
|
19
|
+
</h1>
|
20
|
+
<ul class="files">
|
21
|
+
<li>lib/dfect/mini.rb</li>
|
22
|
+
<li>Last modified: Sun May 03 21:45:24 -0700 2009</li>
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div id="bodyContent">
|
27
|
+
<div id="content">
|
28
|
+
|
29
|
+
<div class="description">
|
30
|
+
<p>
|
31
|
+
MiniTest emulation layer.
|
32
|
+
</p>
|
33
|
+
|
34
|
+
</div>
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
<div class="sectiontitle">Required Files</div>
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li>dfect</li>
|
42
|
+
|
43
|
+
<li>dfect/unit</li>
|
44
|
+
|
45
|
+
<li>dfect/spec</li>
|
46
|
+
|
47
|
+
</ul>
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<div class="sectiontitle">Classes and Modules</div>
|
62
|
+
<ul>
|
63
|
+
|
64
|
+
<li><span class="type">MODULE</span> <a href="../../../classes/Kernel.html">Kernel</a></li>
|
65
|
+
|
66
|
+
</ul>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
</body>
|
77
|
+
</html>
|
@@ -0,0 +1,75 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<title>spec.rb</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
|
9
|
+
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
|
10
|
+
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
<div class="banner">
|
17
|
+
<h1>
|
18
|
+
spec.rb
|
19
|
+
</h1>
|
20
|
+
<ul class="files">
|
21
|
+
<li>lib/dfect/spec.rb</li>
|
22
|
+
<li>Last modified: Sun May 03 21:45:24 -0700 2009</li>
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div id="bodyContent">
|
27
|
+
<div id="content">
|
28
|
+
|
29
|
+
<div class="description">
|
30
|
+
<p>
|
31
|
+
RSpec emulation layer.
|
32
|
+
</p>
|
33
|
+
|
34
|
+
</div>
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
<div class="sectiontitle">Required Files</div>
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li>dfect</li>
|
42
|
+
|
43
|
+
<li>delegate</li>
|
44
|
+
|
45
|
+
</ul>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<div class="sectiontitle">Classes and Modules</div>
|
60
|
+
<ul>
|
61
|
+
|
62
|
+
<li><span class="type">MODULE</span> <a href="../../../classes/Kernel.html">Kernel</a></li>
|
63
|
+
|
64
|
+
</ul>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
</body>
|
75
|
+
</html>
|