updater 0.9.4 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -9
- data/VERSION +1 -1
- data/lib/updater/fork_worker.rb +1 -1
- data/lib/updater/orm/activerocord.rb +23 -0
- data/lib/updater/orm/datamapper.rb +28 -8
- data/lib/updater/orm/mock.rb +155 -0
- data/lib/updater/orm/mongo.rb +50 -15
- data/lib/updater/orm/orm.rb +3 -1
- data/lib/updater/setup.rb +24 -7
- data/lib/updater/thread_worker.rb +5 -0
- data/lib/updater/update.rb +8 -5
- data/spec/chained_spec.rb +3 -2
- data/spec/datamapper_orm_spec.rb +7 -0
- data/spec/errors_spec.rb +1 -1
- data/spec/fooclass.rb +42 -11
- data/spec/fooclass_spec.rb +38 -0
- data/spec/fork_worker_instance_spec.rb +0 -19
- data/spec/fork_worker_spec.rb +1 -0
- data/spec/mock_orm_spec.rb +7 -0
- data/spec/mongo_orm_spec.rb +7 -0
- data/spec/named_request_spec.rb +1 -4
- data/spec/orm_lint.rb +292 -0
- data/spec/params_sub_spec.rb +2 -1
- data/spec/results.html +1567 -0
- data/spec/schedule_spec.rb +18 -9
- data/spec/spec_helper.rb +7 -8
- data/spec/thread_worker_spec.rb +0 -37
- data/spec/update_runner_spec.rb +4 -6
- data/spec/update_spec.rb +1 -1
- data/spec/util_spec.rb +0 -2
- metadata +16 -15
- data/lib/updater/orm/mongo.rb~ +0 -188
- data/lib/updater/setup.rb~ +0 -175
- data/lib/updater/simulated.db +0 -0
- data/lib/updater/thread_worker.rb~ +0 -92
- data/lib/updater/update_dm.rb +0 -298
- data/spec/lock_spec.rb +0 -64
- data/spec/spec_helper.rb~ +0 -23
data/spec/results.html
ADDED
@@ -0,0 +1,1567 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<title>RSpec results</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
|
+
<meta http-equiv="Expires" content="-1" />
|
10
|
+
<meta http-equiv="Pragma" content="no-cache" />
|
11
|
+
<style type="text/css">
|
12
|
+
body {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
background: #fff;
|
16
|
+
font-size: 80%;
|
17
|
+
}
|
18
|
+
</style>
|
19
|
+
<script type="text/javascript">
|
20
|
+
// <![CDATA[
|
21
|
+
|
22
|
+
function addClass(element_id, classname) {
|
23
|
+
document.getElementById(element_id).className += (" " + classname);
|
24
|
+
}
|
25
|
+
|
26
|
+
function removeClass(element_id, classname) {
|
27
|
+
var elem = document.getElementById(element_id);
|
28
|
+
var classlist = elem.className.replace(classname,'');
|
29
|
+
elem.className = classlist;
|
30
|
+
}
|
31
|
+
|
32
|
+
function moveProgressBar(percentDone) {
|
33
|
+
document.getElementById("rspec-header").style.width = percentDone +"%";
|
34
|
+
}
|
35
|
+
|
36
|
+
function makeRed(element_id) {
|
37
|
+
removeClass(element_id, 'passed');
|
38
|
+
removeClass(element_id, 'not_implemented');
|
39
|
+
addClass(element_id,'failed');
|
40
|
+
}
|
41
|
+
|
42
|
+
function makeYellow(element_id) {
|
43
|
+
var elem = document.getElementById(element_id);
|
44
|
+
if (elem.className.indexOf("failed") == -1) { // class doesn't includes failed
|
45
|
+
if (elem.className.indexOf("not_implemented") == -1) { // class doesn't include not_implemented
|
46
|
+
removeClass(element_id, 'passed');
|
47
|
+
addClass(element_id,'not_implemented');
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
function apply_filters() {
|
53
|
+
var passed_filter = document.getElementById('passed_checkbox').checked;
|
54
|
+
var failed_filter = document.getElementById('failed_checkbox').checked;
|
55
|
+
var pending_filter = document.getElementById('pending_checkbox').checked;
|
56
|
+
|
57
|
+
assign_display_style("example passed", passed_filter);
|
58
|
+
assign_display_style("example failed", failed_filter);
|
59
|
+
assign_display_style("example not_implemented", pending_filter);
|
60
|
+
|
61
|
+
assign_display_style_for_group("example_group passed", passed_filter);
|
62
|
+
assign_display_style_for_group("example_group not_implemented", pending_filter, pending_filter || passed_filter);
|
63
|
+
assign_display_style_for_group("example_group failed", failed_filter, failed_filter || pending_filter || passed_filter);
|
64
|
+
}
|
65
|
+
|
66
|
+
function get_display_style(display_flag) {
|
67
|
+
var style_mode = 'none';
|
68
|
+
if (display_flag == true) {
|
69
|
+
style_mode = 'block';
|
70
|
+
}
|
71
|
+
return style_mode;
|
72
|
+
}
|
73
|
+
|
74
|
+
function assign_display_style(classname, display_flag) {
|
75
|
+
var style_mode = get_display_style(display_flag);
|
76
|
+
var elems = document.getElementsByClassName(classname)
|
77
|
+
for (var i=0; i<elems.length;i++) {
|
78
|
+
elems[i].style.display = style_mode;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
function assign_display_style_for_group(classname, display_flag, subgroup_flag) {
|
83
|
+
var display_style_mode = get_display_style(display_flag);
|
84
|
+
var subgroup_style_mode = get_display_style(subgroup_flag);
|
85
|
+
var elems = document.getElementsByClassName(classname)
|
86
|
+
for (var i=0; i<elems.length;i++) {
|
87
|
+
var style_mode = display_style_mode;
|
88
|
+
if ((display_flag != subgroup_flag) && (elems[i].getElementsByTagName('dt')[0].innerHTML.indexOf(", ") != -1)) {
|
89
|
+
elems[i].style.display = subgroup_style_mode;
|
90
|
+
} else {
|
91
|
+
elems[i].style.display = display_style_mode;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// ]]>
|
97
|
+
</script>
|
98
|
+
<style type="text/css">
|
99
|
+
#rspec-header {
|
100
|
+
background: #65C400; color: #fff; height: 4em;
|
101
|
+
}
|
102
|
+
|
103
|
+
.rspec-report h1 {
|
104
|
+
margin: 0px 10px 0px 10px;
|
105
|
+
padding: 10px;
|
106
|
+
font-family: "Lucida Grande", Helvetica, sans-serif;
|
107
|
+
font-size: 1.8em;
|
108
|
+
position: absolute;
|
109
|
+
}
|
110
|
+
|
111
|
+
#label {
|
112
|
+
float:left;
|
113
|
+
}
|
114
|
+
|
115
|
+
#display-filters {
|
116
|
+
float:left;
|
117
|
+
padding: 28px 0 0 40%;
|
118
|
+
font-family: "Lucida Grande", Helvetica, sans-serif;
|
119
|
+
}
|
120
|
+
|
121
|
+
#summary {
|
122
|
+
float:right;
|
123
|
+
padding: 5px 10px;
|
124
|
+
font-family: "Lucida Grande", Helvetica, sans-serif;
|
125
|
+
text-align: right;
|
126
|
+
}
|
127
|
+
|
128
|
+
#summary p {
|
129
|
+
margin: 0 0 0 2px;
|
130
|
+
}
|
131
|
+
|
132
|
+
#summary #totals {
|
133
|
+
font-size: 1.2em;
|
134
|
+
}
|
135
|
+
|
136
|
+
.example_group {
|
137
|
+
margin: 0 10px 5px;
|
138
|
+
background: #fff;
|
139
|
+
}
|
140
|
+
|
141
|
+
dl {
|
142
|
+
margin: 0; padding: 0 0 5px;
|
143
|
+
font: normal 11px "Lucida Grande", Helvetica, sans-serif;
|
144
|
+
}
|
145
|
+
|
146
|
+
dt {
|
147
|
+
padding: 3px;
|
148
|
+
background: #65C400;
|
149
|
+
color: #fff;
|
150
|
+
font-weight: bold;
|
151
|
+
}
|
152
|
+
|
153
|
+
dd {
|
154
|
+
margin: 5px 0 5px 5px;
|
155
|
+
padding: 3px 3px 3px 18px;
|
156
|
+
}
|
157
|
+
|
158
|
+
|
159
|
+
dd.example.passed {
|
160
|
+
border-left: 5px solid #65C400;
|
161
|
+
border-bottom: 1px solid #65C400;
|
162
|
+
background: #DBFFB4; color: #3D7700;
|
163
|
+
}
|
164
|
+
|
165
|
+
dd.example.not_implemented {
|
166
|
+
border-left: 5px solid #FAF834;
|
167
|
+
border-bottom: 1px solid #FAF834;
|
168
|
+
background: #FCFB98; color: #131313;
|
169
|
+
}
|
170
|
+
|
171
|
+
dd.example.pending_fixed {
|
172
|
+
border-left: 5px solid #0000C2;
|
173
|
+
border-bottom: 1px solid #0000C2;
|
174
|
+
color: #0000C2; background: #D3FBFF;
|
175
|
+
}
|
176
|
+
|
177
|
+
dd.example.failed {
|
178
|
+
border-left: 5px solid #C20000;
|
179
|
+
border-bottom: 1px solid #C20000;
|
180
|
+
color: #C20000; background: #FFFBD3;
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
dt.not_implemented {
|
185
|
+
color: #000000; background: #FAF834;
|
186
|
+
}
|
187
|
+
|
188
|
+
dt.pending_fixed {
|
189
|
+
color: #FFFFFF; background: #C40D0D;
|
190
|
+
}
|
191
|
+
|
192
|
+
dt.failed {
|
193
|
+
color: #FFFFFF; background: #C40D0D;
|
194
|
+
}
|
195
|
+
|
196
|
+
|
197
|
+
#rspec-header.not_implemented {
|
198
|
+
color: #000000; background: #FAF834;
|
199
|
+
}
|
200
|
+
|
201
|
+
#rspec-header.pending_fixed {
|
202
|
+
color: #FFFFFF; background: #C40D0D;
|
203
|
+
}
|
204
|
+
|
205
|
+
#rspec-header.failed {
|
206
|
+
color: #FFFFFF; background: #C40D0D;
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
.backtrace {
|
211
|
+
color: #000;
|
212
|
+
font-size: 12px;
|
213
|
+
}
|
214
|
+
|
215
|
+
a {
|
216
|
+
color: #BE5C00;
|
217
|
+
}
|
218
|
+
|
219
|
+
/* Ruby code, style similar to vibrant ink */
|
220
|
+
.ruby {
|
221
|
+
font-size: 12px;
|
222
|
+
font-family: monospace;
|
223
|
+
color: white;
|
224
|
+
background-color: black;
|
225
|
+
padding: 0.1em 0 0.2em 0;
|
226
|
+
}
|
227
|
+
|
228
|
+
.ruby .keyword { color: #FF6600; }
|
229
|
+
.ruby .constant { color: #339999; }
|
230
|
+
.ruby .attribute { color: white; }
|
231
|
+
.ruby .global { color: white; }
|
232
|
+
.ruby .module { color: white; }
|
233
|
+
.ruby .class { color: white; }
|
234
|
+
.ruby .string { color: #66FF00; }
|
235
|
+
.ruby .ident { color: white; }
|
236
|
+
.ruby .method { color: #FFCC00; }
|
237
|
+
.ruby .number { color: white; }
|
238
|
+
.ruby .char { color: white; }
|
239
|
+
.ruby .comment { color: #9933CC; }
|
240
|
+
.ruby .symbol { color: white; }
|
241
|
+
.ruby .regex { color: #44B4CC; }
|
242
|
+
.ruby .punct { color: white; }
|
243
|
+
.ruby .escape { color: white; }
|
244
|
+
.ruby .interp { color: white; }
|
245
|
+
.ruby .expr { color: white; }
|
246
|
+
|
247
|
+
.ruby .offending { background-color: gray; }
|
248
|
+
.ruby .linenum {
|
249
|
+
width: 75px;
|
250
|
+
padding: 0.1em 1em 0.2em 0;
|
251
|
+
color: #000000;
|
252
|
+
background-color: #FFFBD3;
|
253
|
+
}
|
254
|
+
|
255
|
+
</style>
|
256
|
+
</head>
|
257
|
+
<body>
|
258
|
+
<div class="rspec-report">
|
259
|
+
|
260
|
+
<div id="rspec-header">
|
261
|
+
<div id="label">
|
262
|
+
<h1>RSpec Code Examples</h1>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div id="display-filters">
|
266
|
+
<input id="passed_checkbox" name="passed_checkbox" type="checkbox" checked onchange="apply_filters()" value="1"> <label for="passed_checkbox">Passed</label>
|
267
|
+
<input id="failed_checkbox" name="failed_checkbox" type="checkbox" checked onchange="apply_filters()" value="2"> <label for="failed_checkbox">Failed</label>
|
268
|
+
<input id="pending_checkbox" name="pending_checkbox" type="checkbox" checked onchange="apply_filters()" value="3"> <label for="pending_checkbox">Pending</label>
|
269
|
+
</div>
|
270
|
+
|
271
|
+
<div id="summary">
|
272
|
+
<p id="totals"> </p>
|
273
|
+
<p id="duration"> </p>
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
|
277
|
+
|
278
|
+
<div class="results">
|
279
|
+
<div id="div_group_1" class="example_group passed">
|
280
|
+
<dl style="margin-left: 0px;">
|
281
|
+
<dt id="example_group_1" class="passed">Chained Methods:</dt>
|
282
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
283
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
284
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
285
|
+
<script type="text/javascript">moveProgressBar('0.2');</script>
|
286
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">adding 'failure' chain (PENDING: ORM Chaining not yet tested)</span></dd>
|
287
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
288
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
289
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
290
|
+
<script type="text/javascript">moveProgressBar('0.5');</script>
|
291
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">adding 'success' chain (PENDING: ORM Chaining not yet tested)</span></dd>
|
292
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
293
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
294
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
295
|
+
<script type="text/javascript">moveProgressBar('0.8');</script>
|
296
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">adding 'ensure' chain (PENDING: ORM Chaining not yet tested)</span></dd>
|
297
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
298
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
299
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
300
|
+
<script type="text/javascript">moveProgressBar('1.0');</script>
|
301
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">'failure' should run after an error (PENDING: ORM Chaining not yet tested)</span></dd>
|
302
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
303
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
304
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
305
|
+
<script type="text/javascript">moveProgressBar('1.3');</script>
|
306
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">'failure' should NOT run if their is no error (PENDING: ORM Chaining not yet tested)</span></dd>
|
307
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
308
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
309
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
310
|
+
<script type="text/javascript">moveProgressBar('1.6');</script>
|
311
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">'success' should NOT run after an error (PENDING: ORM Chaining not yet tested)</span></dd>
|
312
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
313
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
314
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
315
|
+
<script type="text/javascript">moveProgressBar('1.9');</script>
|
316
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">'success' should run if their is no error (PENDING: ORM Chaining not yet tested)</span></dd>
|
317
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
318
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
319
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
320
|
+
<script type="text/javascript">moveProgressBar('2.1');</script>
|
321
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">'ensure' should run after an error (PENDING: ORM Chaining not yet tested)</span></dd>
|
322
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
323
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
324
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
325
|
+
<script type="text/javascript">moveProgressBar('2.4');</script>
|
326
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">'ensure' should run if their is no error (PENDING: ORM Chaining not yet tested)</span></dd>
|
327
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
328
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
329
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
330
|
+
<script type="text/javascript">moveProgressBar('2.7');</script>
|
331
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">params should be availible (PENDING: ORM Chaining not yet tested)</span></dd>
|
332
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
333
|
+
<script type="text/javascript">makeYellow('div_group_1');</script>
|
334
|
+
<script type="text/javascript">makeYellow('example_group_1');</script>
|
335
|
+
<script type="text/javascript">moveProgressBar('3.0');</script>
|
336
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">add an Array (PENDING: ORM Chaining not yet tested)</span></dd>
|
337
|
+
</dl>
|
338
|
+
</div>
|
339
|
+
<div id="div_group_2" class="example_group passed">
|
340
|
+
<dl style="margin-left: 0px;">
|
341
|
+
<dt id="example_group_2" class="passed">Updater::ORM::DataMapper</dt>
|
342
|
+
</dl>
|
343
|
+
</div>
|
344
|
+
<div id="div_group_3" class="example_group passed">
|
345
|
+
<dl style="margin-left: 15px;">
|
346
|
+
<dt id="example_group_3" class="passed">behaves like an orm</dt>
|
347
|
+
</dl>
|
348
|
+
</div>
|
349
|
+
<div id="div_group_4" class="example_group passed">
|
350
|
+
<dl style="margin-left: 30px;">
|
351
|
+
<dt id="example_group_4" class="passed">class methods</dt>
|
352
|
+
<script type="text/javascript">moveProgressBar('3.2');</script>
|
353
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: get</span></dd>
|
354
|
+
<script type="text/javascript">moveProgressBar('3.5');</script>
|
355
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: create</span></dd>
|
356
|
+
<script type="text/javascript">moveProgressBar('3.8');</script>
|
357
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: current</span></dd>
|
358
|
+
<script type="text/javascript">moveProgressBar('4.0');</script>
|
359
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: current_load</span></dd>
|
360
|
+
<script type="text/javascript">moveProgressBar('4.3');</script>
|
361
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: delayed</span></dd>
|
362
|
+
<script type="text/javascript">moveProgressBar('4.6');</script>
|
363
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: future</span></dd>
|
364
|
+
<script type="text/javascript">moveProgressBar('4.9');</script>
|
365
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: queue_time</span></dd>
|
366
|
+
<script type="text/javascript">moveProgressBar('5.1');</script>
|
367
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: lock_next</span></dd>
|
368
|
+
<script type="text/javascript">moveProgressBar('5.4');</script>
|
369
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: clear_locks</span></dd>
|
370
|
+
<script type="text/javascript">moveProgressBar('5.7');</script>
|
371
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: clear_all</span></dd>
|
372
|
+
<script type="text/javascript">moveProgressBar('6.0');</script>
|
373
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: setup</span></dd>
|
374
|
+
<script type="text/javascript">moveProgressBar('6.2');</script>
|
375
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: for</span></dd>
|
376
|
+
<script type="text/javascript">moveProgressBar('6.5');</script>
|
377
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: logger</span></dd>
|
378
|
+
<script type="text/javascript">moveProgressBar('6.8');</script>
|
379
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: logger=</span></dd>
|
380
|
+
</dl>
|
381
|
+
</div>
|
382
|
+
<div id="div_group_5" class="example_group passed">
|
383
|
+
<dl style="margin-left: 30px;">
|
384
|
+
<dt id="example_group_5" class="passed">instance methods</dt>
|
385
|
+
<script type="text/javascript">moveProgressBar('7.1');</script>
|
386
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: id</span></dd>
|
387
|
+
<script type="text/javascript">moveProgressBar('7.3');</script>
|
388
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: time</span></dd>
|
389
|
+
<script type="text/javascript">moveProgressBar('7.6');</script>
|
390
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: time=</span></dd>
|
391
|
+
<script type="text/javascript">moveProgressBar('7.9');</script>
|
392
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: target</span></dd>
|
393
|
+
<script type="text/javascript">moveProgressBar('8.1');</script>
|
394
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: target=</span></dd>
|
395
|
+
<script type="text/javascript">moveProgressBar('8.4');</script>
|
396
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder</span></dd>
|
397
|
+
<script type="text/javascript">moveProgressBar('8.7');</script>
|
398
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder=</span></dd>
|
399
|
+
<script type="text/javascript">moveProgressBar('9.0');</script>
|
400
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder_args</span></dd>
|
401
|
+
<script type="text/javascript">moveProgressBar('9.2');</script>
|
402
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder_args=</span></dd>
|
403
|
+
<script type="text/javascript">moveProgressBar('9.5');</script>
|
404
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method</span></dd>
|
405
|
+
<script type="text/javascript">moveProgressBar('9.8');</script>
|
406
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method=</span></dd>
|
407
|
+
<script type="text/javascript">moveProgressBar('10.1');</script>
|
408
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method_args</span></dd>
|
409
|
+
<script type="text/javascript">moveProgressBar('10.3');</script>
|
410
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method_args=</span></dd>
|
411
|
+
<script type="text/javascript">moveProgressBar('10.6');</script>
|
412
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: name</span></dd>
|
413
|
+
<script type="text/javascript">moveProgressBar('10.9');</script>
|
414
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: name=</span></dd>
|
415
|
+
<script type="text/javascript">moveProgressBar('11.2');</script>
|
416
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: persistant</span></dd>
|
417
|
+
<script type="text/javascript">moveProgressBar('11.4');</script>
|
418
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: persistant=</span></dd>
|
419
|
+
<script type="text/javascript">moveProgressBar('11.7');</script>
|
420
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: save</span></dd>
|
421
|
+
<script type="text/javascript">moveProgressBar('12.0');</script>
|
422
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: destroy</span></dd>
|
423
|
+
<script type="text/javascript">moveProgressBar('12.2');</script>
|
424
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: lock</span></dd>
|
425
|
+
</dl>
|
426
|
+
</div>
|
427
|
+
<div id="div_group_6" class="example_group passed">
|
428
|
+
<dl style="margin-left: 30px;">
|
429
|
+
<dt id="example_group_6" class="passed">constants</dt>
|
430
|
+
<script type="text/javascript">moveProgressBar('12.5');</script>
|
431
|
+
<dd class="example passed"><span class="passed_spec_name">should have a constant: FINDER</span></dd>
|
432
|
+
<script type="text/javascript">moveProgressBar('12.8');</script>
|
433
|
+
<dd class="example passed"><span class="passed_spec_name">should have a constant: ID</span></dd>
|
434
|
+
</dl>
|
435
|
+
</div>
|
436
|
+
<div id="div_group_7" class="example_group passed">
|
437
|
+
<dl style="margin-left: 30px;">
|
438
|
+
<dt id="example_group_7" class="passed">clear_all</dt>
|
439
|
+
<script type="text/javascript">moveProgressBar('13.1');</script>
|
440
|
+
<dd class="example passed"><span class="passed_spec_name">should remove all jobs</span></dd>
|
441
|
+
</dl>
|
442
|
+
</div>
|
443
|
+
<div id="div_group_8" class="example_group passed">
|
444
|
+
<dl style="margin-left: 30px;">
|
445
|
+
<dt id="example_group_8" class="passed">an instance</dt>
|
446
|
+
<script type="text/javascript">moveProgressBar('13.3');</script>
|
447
|
+
<dd class="example passed"><span class="passed_spec_name">should have an id</span></dd>
|
448
|
+
<script type="text/javascript">moveProgressBar('13.6');</script>
|
449
|
+
<dd class="example passed"><span class="passed_spec_name">should be in the current list</span></dd>
|
450
|
+
<script type="text/javascript">moveProgressBar('13.9');</script>
|
451
|
+
<dd class="example passed"><span class="passed_spec_name">should be retrieved with 'get'</span></dd>
|
452
|
+
<script type="text/javascript">moveProgressBar('14.2');</script>
|
453
|
+
<dd class="example passed"><span class="passed_spec_name">should be removed with 'destroy'</span></dd>
|
454
|
+
</dl>
|
455
|
+
</div>
|
456
|
+
<div id="div_group_9" class="example_group passed">
|
457
|
+
<dl style="margin-left: 45px;">
|
458
|
+
<dt id="example_group_9" class="passed">getters</dt>
|
459
|
+
<script type="text/javascript">moveProgressBar('14.4');</script>
|
460
|
+
<dd class="example passed"><span class="passed_spec_name">time should be set to the correct value</span></dd>
|
461
|
+
<script type="text/javascript">moveProgressBar('14.7');</script>
|
462
|
+
<dd class="example passed"><span class="passed_spec_name">finder should be set to the correct value</span></dd>
|
463
|
+
<script type="text/javascript">moveProgressBar('15.0');</script>
|
464
|
+
<dd class="example passed"><span class="passed_spec_name">finder_args should be set to the correct value</span></dd>
|
465
|
+
<script type="text/javascript">moveProgressBar('15.3');</script>
|
466
|
+
<dd class="example passed"><span class="passed_spec_name">method should be set to the correct value</span></dd>
|
467
|
+
<script type="text/javascript">moveProgressBar('15.5');</script>
|
468
|
+
<dd class="example passed"><span class="passed_spec_name">method_args should be set to the correct value</span></dd>
|
469
|
+
<script type="text/javascript">moveProgressBar('15.8');</script>
|
470
|
+
<dd class="example passed"><span class="passed_spec_name">target should be set to the correct value</span></dd>
|
471
|
+
<script type="text/javascript">moveProgressBar('16.1');</script>
|
472
|
+
<dd class="example passed"><span class="passed_spec_name">persistant should be set to the correct value</span></dd>
|
473
|
+
</dl>
|
474
|
+
</div>
|
475
|
+
<div id="div_group_10" class="example_group passed">
|
476
|
+
<dl style="margin-left: 30px;">
|
477
|
+
<dt id="example_group_10" class="passed">locking</dt>
|
478
|
+
<script type="text/javascript">moveProgressBar('16.3');</script>
|
479
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock</span></dd>
|
480
|
+
<script type="text/javascript">moveProgressBar('16.6');</script>
|
481
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock again with the same worker</span></dd>
|
482
|
+
<script type="text/javascript">moveProgressBar('16.9');</script>
|
483
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock if it has been locked</span></dd>
|
484
|
+
</dl>
|
485
|
+
</div>
|
486
|
+
<div id="div_group_11" class="example_group passed">
|
487
|
+
<dl style="margin-left: 30px;">
|
488
|
+
<dt id="example_group_11" class="passed">lock_next</dt>
|
489
|
+
<script type="text/javascript">moveProgressBar('17.2');</script>
|
490
|
+
<dd class="example passed"><span class="passed_spec_name">should return the next current instance locked to the worker</span></dd>
|
491
|
+
<script type="text/javascript">moveProgressBar('17.4');</script>
|
492
|
+
<dd class="example passed"><span class="passed_spec_name">should return nil if there are no current jobs without a lock</span></dd>
|
493
|
+
</dl>
|
494
|
+
</div>
|
495
|
+
<div id="div_group_12" class="example_group passed">
|
496
|
+
<dl style="margin-left: 30px;">
|
497
|
+
<dt id="example_group_12" class="passed">clear locks</dt>
|
498
|
+
<script type="text/javascript">moveProgressBar('17.7');</script>
|
499
|
+
<dd class="example passed"><span class="passed_spec_name">should clear every lock held by a worker</span></dd>
|
500
|
+
</dl>
|
501
|
+
</div>
|
502
|
+
<div id="div_group_13" class="example_group passed">
|
503
|
+
<dl style="margin-left: 30px;">
|
504
|
+
<dt id="example_group_13" class="passed">queue_time</dt>
|
505
|
+
<script type="text/javascript">moveProgressBar('18.0');</script>
|
506
|
+
<dd class="example passed"><span class="passed_spec_name">should be nil if the queue is empty</span></dd>
|
507
|
+
<script type="text/javascript">moveProgressBar('18.3');</script>
|
508
|
+
<dd class="example passed"><span class="passed_spec_name">should be 0 if there is a current job</span></dd>
|
509
|
+
<script type="text/javascript">moveProgressBar('18.5');</script>
|
510
|
+
<dd class="example passed"><span class="passed_spec_name">should be the time to the next job</span></dd>
|
511
|
+
</dl>
|
512
|
+
</div>
|
513
|
+
<div id="div_group_14" class="example_group passed">
|
514
|
+
<dl style="margin-left: 30px;">
|
515
|
+
<dt id="example_group_14" class="passed">with method chaining:</dt>
|
516
|
+
</dl>
|
517
|
+
</div>
|
518
|
+
<div id="div_group_15" class="example_group passed">
|
519
|
+
<dl style="margin-left: 45px;">
|
520
|
+
<dt id="example_group_15" class="passed">success</dt>
|
521
|
+
<script type="text/javascript">moveProgressBar('18.8');</script>
|
522
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
523
|
+
</dl>
|
524
|
+
</div>
|
525
|
+
<div id="div_group_16" class="example_group passed">
|
526
|
+
<dl style="margin-left: 45px;">
|
527
|
+
<dt id="example_group_16" class="passed">success=</dt>
|
528
|
+
<script type="text/javascript">moveProgressBar('19.1');</script>
|
529
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
530
|
+
<script type="text/javascript">moveProgressBar('19.3');</script>
|
531
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::DataMapper instance</span></dd>
|
532
|
+
<script type="text/javascript">moveProgressBar('19.6');</script>
|
533
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
534
|
+
<script type="text/javascript">moveProgressBar('19.9');</script>
|
535
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
536
|
+
<script type="text/javascript">moveProgressBar('20.2');</script>
|
537
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
538
|
+
<script type="text/javascript">moveProgressBar('20.4');</script>
|
539
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
540
|
+
<script type="text/javascript">moveProgressBar('20.7');</script>
|
541
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
542
|
+
<script type="text/javascript">moveProgressBar('21.0');</script>
|
543
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
544
|
+
<script type="text/javascript">moveProgressBar('21.3');</script>
|
545
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
546
|
+
</dl>
|
547
|
+
</div>
|
548
|
+
<div id="div_group_17" class="example_group passed">
|
549
|
+
<dl style="margin-left: 45px;">
|
550
|
+
<dt id="example_group_17" class="passed">failure</dt>
|
551
|
+
<script type="text/javascript">moveProgressBar('21.5');</script>
|
552
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
553
|
+
</dl>
|
554
|
+
</div>
|
555
|
+
<div id="div_group_18" class="example_group passed">
|
556
|
+
<dl style="margin-left: 45px;">
|
557
|
+
<dt id="example_group_18" class="passed">failure=</dt>
|
558
|
+
<script type="text/javascript">moveProgressBar('21.8');</script>
|
559
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
560
|
+
<script type="text/javascript">moveProgressBar('22.1');</script>
|
561
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::DataMapper instance</span></dd>
|
562
|
+
<script type="text/javascript">moveProgressBar('22.4');</script>
|
563
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
564
|
+
<script type="text/javascript">moveProgressBar('22.6');</script>
|
565
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
566
|
+
<script type="text/javascript">moveProgressBar('22.9');</script>
|
567
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
568
|
+
<script type="text/javascript">moveProgressBar('23.2');</script>
|
569
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
570
|
+
<script type="text/javascript">moveProgressBar('23.4');</script>
|
571
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
572
|
+
<script type="text/javascript">moveProgressBar('23.7');</script>
|
573
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
574
|
+
<script type="text/javascript">moveProgressBar('24.0');</script>
|
575
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
576
|
+
</dl>
|
577
|
+
</div>
|
578
|
+
<div id="div_group_19" class="example_group passed">
|
579
|
+
<dl style="margin-left: 45px;">
|
580
|
+
<dt id="example_group_19" class="passed">ensure</dt>
|
581
|
+
<script type="text/javascript">moveProgressBar('24.3');</script>
|
582
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
583
|
+
</dl>
|
584
|
+
</div>
|
585
|
+
<div id="div_group_20" class="example_group passed">
|
586
|
+
<dl style="margin-left: 45px;">
|
587
|
+
<dt id="example_group_20" class="passed">ensure=</dt>
|
588
|
+
<script type="text/javascript">moveProgressBar('24.5');</script>
|
589
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
590
|
+
<script type="text/javascript">moveProgressBar('24.8');</script>
|
591
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::DataMapper instance</span></dd>
|
592
|
+
<script type="text/javascript">moveProgressBar('25.1');</script>
|
593
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
594
|
+
<script type="text/javascript">moveProgressBar('25.4');</script>
|
595
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
596
|
+
<script type="text/javascript">moveProgressBar('25.6');</script>
|
597
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
598
|
+
<script type="text/javascript">moveProgressBar('25.9');</script>
|
599
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
600
|
+
<script type="text/javascript">moveProgressBar('26.2');</script>
|
601
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
602
|
+
<script type="text/javascript">moveProgressBar('26.5');</script>
|
603
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
604
|
+
<script type="text/javascript">moveProgressBar('26.7');</script>
|
605
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
606
|
+
</dl>
|
607
|
+
</div>
|
608
|
+
<div id="div_group_21" class="example_group passed">
|
609
|
+
<dl style="margin-left: 30px;">
|
610
|
+
<dt id="example_group_21" class="passed">#for</dt>
|
611
|
+
<script type="text/javascript">moveProgressBar('27.0');</script>
|
612
|
+
<dd class="example passed"><span class="passed_spec_name">should find all jobs</span></dd>
|
613
|
+
<script type="text/javascript">moveProgressBar('27.3');</script>
|
614
|
+
<dd class="example passed"><span class="passed_spec_name">should find a job by name</span></dd>
|
615
|
+
<script type="text/javascript">moveProgressBar('27.5');</script>
|
616
|
+
<dd class="example passed"><span class="passed_spec_name">should return an empty array if no job is found</span></dd>
|
617
|
+
</dl>
|
618
|
+
</div>
|
619
|
+
<div id="div_group_22" class="example_group passed">
|
620
|
+
<dl style="margin-left: 0px;">
|
621
|
+
<dt id="example_group_22" class="passed">Job Error Handeling</dt>
|
622
|
+
<script type="text/javascript">moveProgressBar('27.8');</script>
|
623
|
+
<dd class="example passed"><span class="passed_spec_name">should return false when run</span></dd>
|
624
|
+
<script type="text/javascript">moveProgressBar('28.1');</script>
|
625
|
+
<dd class="example passed"><span class="passed_spec_name">should trap errors</span></dd>
|
626
|
+
<script type="text/javascript">moveProgressBar('28.4');</script>
|
627
|
+
<dd class="example passed"><span class="passed_spec_name">should run the failure task</span></dd>
|
628
|
+
</dl>
|
629
|
+
</div>
|
630
|
+
<div id="div_group_23" class="example_group passed">
|
631
|
+
<dl style="margin-left: 0px;">
|
632
|
+
<dt id="example_group_23" class="passed">Foo</dt>
|
633
|
+
<script type="text/javascript">moveProgressBar('28.6');</script>
|
634
|
+
<dd class="example passed"><span class="passed_spec_name">should have an unique index function</span></dd>
|
635
|
+
<script type="text/javascript">moveProgressBar('28.9');</script>
|
636
|
+
<dd class="example passed"><span class="passed_spec_name">should instantiate a new instance with an id</span></dd>
|
637
|
+
<script type="text/javascript">moveProgressBar('29.2');</script>
|
638
|
+
<dd class="example passed"><span class="passed_spec_name">should create saved instances</span></dd>
|
639
|
+
<script type="text/javascript">moveProgressBar('29.5');</script>
|
640
|
+
<dd class="example passed"><span class="passed_spec_name">should have a name I can set</span></dd>
|
641
|
+
<script type="text/javascript">moveProgressBar('29.7');</script>
|
642
|
+
<dd class="example passed"><span class="passed_spec_name">should have a count</span></dd>
|
643
|
+
</dl>
|
644
|
+
</div>
|
645
|
+
<div id="div_group_24" class="example_group passed">
|
646
|
+
<dl style="margin-left: 0px;">
|
647
|
+
<dt id="example_group_24" class="passed">Fork Worker Instance</dt>
|
648
|
+
<script type="text/javascript">moveProgressBar('30.0');</script>
|
649
|
+
<dd class="example passed"><span class="passed_spec_name">should have a heartbeat</span></dd>
|
650
|
+
</dl>
|
651
|
+
</div>
|
652
|
+
<div id="div_group_25" class="example_group passed">
|
653
|
+
<dl style="margin-left: 15px;">
|
654
|
+
<dt id="example_group_25" class="passed">#smoke_pipe</dt>
|
655
|
+
<script type="text/javascript">moveProgressBar('30.3');</script>
|
656
|
+
<dd class="example passed"><span class="passed_spec_name">should remove exactly 1 char from a pipe</span></dd>
|
657
|
+
<script type="text/javascript">moveProgressBar('30.6');</script>
|
658
|
+
<dd class="example passed"><span class="passed_spec_name">should not raise errors or block on empty pipes</span></dd>
|
659
|
+
</dl>
|
660
|
+
</div>
|
661
|
+
<div id="div_group_26" class="example_group passed">
|
662
|
+
<dl style="margin-left: 15px;">
|
663
|
+
<dt id="example_group_26" class="passed">#wait_for</dt>
|
664
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
665
|
+
<script type="text/javascript">makeYellow('div_group_26');</script>
|
666
|
+
<script type="text/javascript">makeYellow('example_group_26');</script>
|
667
|
+
<script type="text/javascript">moveProgressBar('30.8');</script>
|
668
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should have specs (PENDING: Not Yet Implemented)</span></dd>
|
669
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
670
|
+
<script type="text/javascript">makeYellow('div_group_26');</script>
|
671
|
+
<script type="text/javascript">makeYellow('example_group_26');</script>
|
672
|
+
<script type="text/javascript">moveProgressBar('31.1');</script>
|
673
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should wake as soon as a new job signal is placed on the pipe (PENDING: Not Yet Implemented)</span></dd>
|
674
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
675
|
+
<script type="text/javascript">makeYellow('div_group_26');</script>
|
676
|
+
<script type="text/javascript">makeYellow('example_group_26');</script>
|
677
|
+
<script type="text/javascript">moveProgressBar('31.4');</script>
|
678
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should run the heartbeat every 'timeout' seconds (PENDING: Not Yet Implemented)</span></dd>
|
679
|
+
</dl>
|
680
|
+
</div>
|
681
|
+
<div id="div_group_27" class="example_group passed">
|
682
|
+
<dl style="margin-left: 30px;">
|
683
|
+
<dt id="example_group_27" class="passed">when there are pending jobs</dt>
|
684
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
685
|
+
<script type="text/javascript">makeYellow('div_group_27');</script>
|
686
|
+
<script type="text/javascript">makeYellow('example_group_27');</script>
|
687
|
+
<script type="text/javascript">moveProgressBar('31.6');</script>
|
688
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should NOT wait for a signal (PENDING: Not Yet Implemented)</span></dd>
|
689
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
690
|
+
<script type="text/javascript">makeYellow('div_group_27');</script>
|
691
|
+
<script type="text/javascript">makeYellow('example_group_27');</script>
|
692
|
+
<script type="text/javascript">moveProgressBar('31.9');</script>
|
693
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should smoke the pipe (PENDING: Not Yet Implemented)</span></dd>
|
694
|
+
</dl>
|
695
|
+
</div>
|
696
|
+
<div id="div_group_28" class="example_group passed">
|
697
|
+
<dl style="margin-left: 0px;">
|
698
|
+
<dt id="example_group_28" class="passed">Updater::ForkWorker</dt>
|
699
|
+
</dl>
|
700
|
+
</div>
|
701
|
+
<div id="div_group_29" class="example_group passed">
|
702
|
+
<dl style="margin-left: 15px;">
|
703
|
+
<dt id="example_group_29" class="passed">#reap_all_workers</dt>
|
704
|
+
<script type="text/javascript">moveProgressBar('32.2');</script>
|
705
|
+
<dd class="example passed"><span class="passed_spec_name">should remove workers</span></dd>
|
706
|
+
<script type="text/javascript">moveProgressBar('32.5');</script>
|
707
|
+
<dd class="example passed"><span class="passed_spec_name">should not fail if there are no child processes</span></dd>
|
708
|
+
</dl>
|
709
|
+
</div>
|
710
|
+
<div id="div_group_30" class="example_group passed">
|
711
|
+
<dl style="margin-left: 15px;">
|
712
|
+
<dt id="example_group_30" class="passed">#remove_worker</dt>
|
713
|
+
<script type="text/javascript">moveProgressBar('32.7');</script>
|
714
|
+
<dd class="example passed"><span class="passed_spec_name">should silently ignore missing workers</span></dd>
|
715
|
+
<script type="text/javascript">moveProgressBar('33.0');</script>
|
716
|
+
<dd class="example passed"><span class="passed_spec_name">should remove the worker from the set</span></dd>
|
717
|
+
<script type="text/javascript">moveProgressBar('33.3');</script>
|
718
|
+
<dd class="example passed"><span class="passed_spec_name">should close the removed workers heartbeat file</span></dd>
|
719
|
+
<script type="text/javascript">moveProgressBar('33.6');</script>
|
720
|
+
<dd class="example passed"><span class="passed_spec_name">should not fail if the heartbeat file is already closed</span></dd>
|
721
|
+
</dl>
|
722
|
+
</div>
|
723
|
+
<div id="div_group_31" class="example_group passed">
|
724
|
+
<dl style="margin-left: 15px;">
|
725
|
+
<dt id="example_group_31" class="passed">#add_worker</dt>
|
726
|
+
<script type="text/javascript">moveProgressBar('33.8');</script>
|
727
|
+
<dd class="example passed"><span class="passed_spec_name">should add the new worker to the set</span></dd>
|
728
|
+
<script type="text/javascript">moveProgressBar('34.1');</script>
|
729
|
+
<dd class="example passed"><span class="passed_spec_name">should run a new worker instance in a fork</span></dd>
|
730
|
+
</dl>
|
731
|
+
</div>
|
732
|
+
<div id="div_group_32" class="example_group passed">
|
733
|
+
<dl style="margin-left: 15px;">
|
734
|
+
<dt id="example_group_32" class="passed">#spawn_missing_workers</dt>
|
735
|
+
<script type="text/javascript">moveProgressBar('34.4');</script>
|
736
|
+
<dd class="example passed"><span class="passed_spec_name">should add a worker with an empty set</span></dd>
|
737
|
+
<script type="text/javascript">moveProgressBar('34.6');</script>
|
738
|
+
<dd class="example passed"><span class="passed_spec_name">should add a worker when there are fewer then needed</span></dd>
|
739
|
+
<script type="text/javascript">moveProgressBar('34.9');</script>
|
740
|
+
<dd class="example passed"><span class="passed_spec_name">should add a worker when one has gon missing</span></dd>
|
741
|
+
<script type="text/javascript">moveProgressBar('35.2');</script>
|
742
|
+
<dd class="example passed"><span class="passed_spec_name">should not add workers if thier are already enough</span></dd>
|
743
|
+
</dl>
|
744
|
+
</div>
|
745
|
+
<div id="div_group_33" class="example_group passed">
|
746
|
+
<dl style="margin-left: 15px;">
|
747
|
+
<dt id="example_group_33" class="passed">#initial_setup</dt>
|
748
|
+
<script type="text/javascript">moveProgressBar('35.5');</script>
|
749
|
+
<dd class="example passed"><span class="passed_spec_name">should set up a logger when one does not exist</span></dd>
|
750
|
+
<script type="text/javascript">moveProgressBar('35.7');</script>
|
751
|
+
<dd class="example passed"><span class="passed_spec_name">should set workers set to empty</span></dd>
|
752
|
+
<script type="text/javascript">moveProgressBar('36.0');</script>
|
753
|
+
<dd class="example passed"><span class="passed_spec_name">should create a pipe for children</span></dd>
|
754
|
+
</dl>
|
755
|
+
</div>
|
756
|
+
<div id="div_group_34" class="example_group passed">
|
757
|
+
<dl style="margin-left: 15px;">
|
758
|
+
<dt id="example_group_34" class="passed">#handle_signal_queue</dt>
|
759
|
+
<script type="text/javascript">moveProgressBar('36.3');</script>
|
760
|
+
<dd class="example passed"><span class="passed_spec_name">it should exicute a graceful shutdown on QUIT</span></dd>
|
761
|
+
<script type="text/javascript">moveProgressBar('36.6');</script>
|
762
|
+
<dd class="example passed"><span class="passed_spec_name">it should exicute a graceful shutdown on INT</span></dd>
|
763
|
+
<script type="text/javascript">moveProgressBar('36.8');</script>
|
764
|
+
<dd class="example passed"><span class="passed_spec_name">it should exicute a rapid shutdown on TERM</span></dd>
|
765
|
+
<script type="text/javascript">moveProgressBar('37.1');</script>
|
766
|
+
<dd class="example passed"><span class="passed_spec_name">should write to the pipe on USR2</span></dd>
|
767
|
+
<script type="text/javascript">moveProgressBar('37.4');</script>
|
768
|
+
<dd class="example passed"><span class="passed_spec_name">should write to the pipe on DATA</span></dd>
|
769
|
+
<script type="text/javascript">moveProgressBar('37.7');</script>
|
770
|
+
<dd class="example passed"><span class="passed_spec_name">should do maintance when the queue is empty</span></dd>
|
771
|
+
<script type="text/javascript">moveProgressBar('37.9');</script>
|
772
|
+
<dd class="example passed"><span class="passed_spec_name">should increase max_workers on TTIN and decrease on TTOU</span></dd>
|
773
|
+
<script type="text/javascript">moveProgressBar('38.2');</script>
|
774
|
+
<dd class="example passed"><span class="passed_spec_name">should never allow max_workers to be less then 1</span></dd>
|
775
|
+
</dl>
|
776
|
+
</div>
|
777
|
+
<div id="div_group_35" class="example_group passed">
|
778
|
+
<dl style="margin-left: 15px;">
|
779
|
+
<dt id="example_group_35" class="passed">Master loop control</dt>
|
780
|
+
</dl>
|
781
|
+
</div>
|
782
|
+
<div id="div_group_36" class="example_group passed">
|
783
|
+
<dl style="margin-left: 30px;">
|
784
|
+
<dt id="example_group_36" class="passed">#master_sleep</dt>
|
785
|
+
<script type="text/javascript">moveProgressBar('38.5');</script>
|
786
|
+
<dd class="example passed"><span class="passed_spec_name">should return to run maintance if there is no signal</span></dd>
|
787
|
+
<script type="text/javascript">moveProgressBar('38.7');</script>
|
788
|
+
<dd class="example passed"><span class="passed_spec_name">should return if there is data on self_pipe</span></dd>
|
789
|
+
<script type="text/javascript">moveProgressBar('39.0');</script>
|
790
|
+
<dd class="example passed"><span class="passed_spec_name">should also add ':DATA' to queue when a stream other then self_pipe is ready.</span></dd>
|
791
|
+
</dl>
|
792
|
+
</div>
|
793
|
+
<div id="div_group_37" class="example_group passed">
|
794
|
+
<dl style="margin-left: 15px;">
|
795
|
+
<dt id="example_group_37" class="passed">#stop(true)</dt>
|
796
|
+
</dl>
|
797
|
+
</div>
|
798
|
+
<div id="div_group_38" class="example_group passed">
|
799
|
+
<dl style="margin-left: 30px;">
|
800
|
+
<dt id="example_group_38" class="passed">with no workers</dt>
|
801
|
+
<script type="text/javascript">moveProgressBar('39.3');</script>
|
802
|
+
<dd class="example passed"><span class="passed_spec_name">should not fail</span></dd>
|
803
|
+
<script type="text/javascript">moveProgressBar('39.6');</script>
|
804
|
+
<dd class="example passed"><span class="passed_spec_name">should not signal any workers</span></dd>
|
805
|
+
</dl>
|
806
|
+
</div>
|
807
|
+
<div id="div_group_39" class="example_group passed">
|
808
|
+
<dl style="margin-left: 30px;">
|
809
|
+
<dt id="example_group_39" class="passed">with workers</dt>
|
810
|
+
Quitting. I need 30 seconds to stop my workers...
|
811
|
+
<script type="text/javascript">moveProgressBar('39.8');</script>
|
812
|
+
<dd class="example passed"><span class="passed_spec_name">should signals each worker to end</span></dd>
|
813
|
+
Quitting. I need 30 seconds to stop my workers...
|
814
|
+
<script type="text/javascript">moveProgressBar('40.1');</script>
|
815
|
+
<dd class="example passed"><span class="passed_spec_name">should not kill workers that successfully quit</span></dd>
|
816
|
+
</dl>
|
817
|
+
</div>
|
818
|
+
<div id="div_group_40" class="example_group passed">
|
819
|
+
<dl style="margin-left: 15px;">
|
820
|
+
<dt id="example_group_40" class="passed">#stop(false)</dt>
|
821
|
+
</dl>
|
822
|
+
</div>
|
823
|
+
<div id="div_group_41" class="example_group passed">
|
824
|
+
<dl style="margin-left: 30px;">
|
825
|
+
<dt id="example_group_41" class="passed">with no workers</dt>
|
826
|
+
<script type="text/javascript">moveProgressBar('40.4');</script>
|
827
|
+
<dd class="example passed"><span class="passed_spec_name">should not fail</span></dd>
|
828
|
+
<script type="text/javascript">moveProgressBar('40.7');</script>
|
829
|
+
<dd class="example passed"><span class="passed_spec_name">should not signal any workers</span></dd>
|
830
|
+
</dl>
|
831
|
+
</div>
|
832
|
+
<div id="div_group_42" class="example_group passed">
|
833
|
+
<dl style="margin-left: 30px;">
|
834
|
+
<dt id="example_group_42" class="passed">with workers</dt>
|
835
|
+
Quitting. I need 30 seconds to stop my workers...
|
836
|
+
<script type="text/javascript">moveProgressBar('40.9');</script>
|
837
|
+
<dd class="example passed"><span class="passed_spec_name">should signals each worker to end</span></dd>
|
838
|
+
Quitting. I need 30 seconds to stop my workers...
|
839
|
+
<script type="text/javascript">moveProgressBar('41.2');</script>
|
840
|
+
<dd class="example passed"><span class="passed_spec_name">should not kill workers that successfully quit</span></dd>
|
841
|
+
</dl>
|
842
|
+
</div>
|
843
|
+
<div id="div_group_43" class="example_group passed">
|
844
|
+
<dl style="margin-left: 0px;">
|
845
|
+
<dt id="example_group_43" class="passed">Updater::ORM::Mock</dt>
|
846
|
+
</dl>
|
847
|
+
</div>
|
848
|
+
<div id="div_group_44" class="example_group passed">
|
849
|
+
<dl style="margin-left: 15px;">
|
850
|
+
<dt id="example_group_44" class="passed">behaves like an orm</dt>
|
851
|
+
</dl>
|
852
|
+
</div>
|
853
|
+
<div id="div_group_45" class="example_group passed">
|
854
|
+
<dl style="margin-left: 30px;">
|
855
|
+
<dt id="example_group_45" class="passed">class methods</dt>
|
856
|
+
<script type="text/javascript">moveProgressBar('41.5');</script>
|
857
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: get</span></dd>
|
858
|
+
<script type="text/javascript">moveProgressBar('41.8');</script>
|
859
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: create</span></dd>
|
860
|
+
<script type="text/javascript">moveProgressBar('42.0');</script>
|
861
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: current</span></dd>
|
862
|
+
<script type="text/javascript">moveProgressBar('42.3');</script>
|
863
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: current_load</span></dd>
|
864
|
+
<script type="text/javascript">moveProgressBar('42.6');</script>
|
865
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: delayed</span></dd>
|
866
|
+
<script type="text/javascript">moveProgressBar('42.8');</script>
|
867
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: future</span></dd>
|
868
|
+
<script type="text/javascript">moveProgressBar('43.1');</script>
|
869
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: queue_time</span></dd>
|
870
|
+
<script type="text/javascript">moveProgressBar('43.4');</script>
|
871
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: lock_next</span></dd>
|
872
|
+
<script type="text/javascript">moveProgressBar('43.7');</script>
|
873
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: clear_locks</span></dd>
|
874
|
+
<script type="text/javascript">moveProgressBar('43.9');</script>
|
875
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: clear_all</span></dd>
|
876
|
+
<script type="text/javascript">moveProgressBar('44.2');</script>
|
877
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: setup</span></dd>
|
878
|
+
<script type="text/javascript">moveProgressBar('44.5');</script>
|
879
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: for</span></dd>
|
880
|
+
<script type="text/javascript">moveProgressBar('44.8');</script>
|
881
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: logger</span></dd>
|
882
|
+
<script type="text/javascript">moveProgressBar('45.0');</script>
|
883
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: logger=</span></dd>
|
884
|
+
</dl>
|
885
|
+
</div>
|
886
|
+
<div id="div_group_46" class="example_group passed">
|
887
|
+
<dl style="margin-left: 30px;">
|
888
|
+
<dt id="example_group_46" class="passed">instance methods</dt>
|
889
|
+
<script type="text/javascript">moveProgressBar('45.3');</script>
|
890
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: id</span></dd>
|
891
|
+
<script type="text/javascript">moveProgressBar('45.6');</script>
|
892
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: time</span></dd>
|
893
|
+
<script type="text/javascript">moveProgressBar('45.9');</script>
|
894
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: time=</span></dd>
|
895
|
+
<script type="text/javascript">moveProgressBar('46.1');</script>
|
896
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: target</span></dd>
|
897
|
+
<script type="text/javascript">moveProgressBar('46.4');</script>
|
898
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: target=</span></dd>
|
899
|
+
<script type="text/javascript">moveProgressBar('46.7');</script>
|
900
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder</span></dd>
|
901
|
+
<script type="text/javascript">moveProgressBar('46.9');</script>
|
902
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder=</span></dd>
|
903
|
+
<script type="text/javascript">moveProgressBar('47.2');</script>
|
904
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder_args</span></dd>
|
905
|
+
<script type="text/javascript">moveProgressBar('47.5');</script>
|
906
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder_args=</span></dd>
|
907
|
+
<script type="text/javascript">moveProgressBar('47.8');</script>
|
908
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method</span></dd>
|
909
|
+
<script type="text/javascript">moveProgressBar('48.0');</script>
|
910
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method=</span></dd>
|
911
|
+
<script type="text/javascript">moveProgressBar('48.3');</script>
|
912
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method_args</span></dd>
|
913
|
+
<script type="text/javascript">moveProgressBar('48.6');</script>
|
914
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method_args=</span></dd>
|
915
|
+
<script type="text/javascript">moveProgressBar('48.9');</script>
|
916
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: name</span></dd>
|
917
|
+
<script type="text/javascript">moveProgressBar('49.1');</script>
|
918
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: name=</span></dd>
|
919
|
+
<script type="text/javascript">moveProgressBar('49.4');</script>
|
920
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: persistant</span></dd>
|
921
|
+
<script type="text/javascript">moveProgressBar('49.7');</script>
|
922
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: persistant=</span></dd>
|
923
|
+
<script type="text/javascript">moveProgressBar('50.0');</script>
|
924
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: save</span></dd>
|
925
|
+
<script type="text/javascript">moveProgressBar('50.2');</script>
|
926
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: destroy</span></dd>
|
927
|
+
<script type="text/javascript">moveProgressBar('50.5');</script>
|
928
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: lock</span></dd>
|
929
|
+
</dl>
|
930
|
+
</div>
|
931
|
+
<div id="div_group_47" class="example_group passed">
|
932
|
+
<dl style="margin-left: 30px;">
|
933
|
+
<dt id="example_group_47" class="passed">constants</dt>
|
934
|
+
<script type="text/javascript">moveProgressBar('50.8');</script>
|
935
|
+
<dd class="example passed"><span class="passed_spec_name">should have a constant: FINDER</span></dd>
|
936
|
+
<script type="text/javascript">moveProgressBar('51.0');</script>
|
937
|
+
<dd class="example passed"><span class="passed_spec_name">should have a constant: ID</span></dd>
|
938
|
+
</dl>
|
939
|
+
</div>
|
940
|
+
<div id="div_group_48" class="example_group passed">
|
941
|
+
<dl style="margin-left: 30px;">
|
942
|
+
<dt id="example_group_48" class="passed">clear_all</dt>
|
943
|
+
<script type="text/javascript">moveProgressBar('51.3');</script>
|
944
|
+
<dd class="example passed"><span class="passed_spec_name">should remove all jobs</span></dd>
|
945
|
+
</dl>
|
946
|
+
</div>
|
947
|
+
<div id="div_group_49" class="example_group passed">
|
948
|
+
<dl style="margin-left: 30px;">
|
949
|
+
<dt id="example_group_49" class="passed">an instance</dt>
|
950
|
+
<script type="text/javascript">moveProgressBar('51.6');</script>
|
951
|
+
<dd class="example passed"><span class="passed_spec_name">should have an id</span></dd>
|
952
|
+
<script type="text/javascript">moveProgressBar('51.9');</script>
|
953
|
+
<dd class="example passed"><span class="passed_spec_name">should be in the current list</span></dd>
|
954
|
+
<script type="text/javascript">moveProgressBar('52.1');</script>
|
955
|
+
<dd class="example passed"><span class="passed_spec_name">should be retrieved with 'get'</span></dd>
|
956
|
+
<script type="text/javascript">moveProgressBar('52.4');</script>
|
957
|
+
<dd class="example passed"><span class="passed_spec_name">should be removed with 'destroy'</span></dd>
|
958
|
+
</dl>
|
959
|
+
</div>
|
960
|
+
<div id="div_group_50" class="example_group passed">
|
961
|
+
<dl style="margin-left: 45px;">
|
962
|
+
<dt id="example_group_50" class="passed">getters</dt>
|
963
|
+
<script type="text/javascript">moveProgressBar('52.7');</script>
|
964
|
+
<dd class="example passed"><span class="passed_spec_name">time should be set to the correct value</span></dd>
|
965
|
+
<script type="text/javascript">moveProgressBar('53.0');</script>
|
966
|
+
<dd class="example passed"><span class="passed_spec_name">finder should be set to the correct value</span></dd>
|
967
|
+
<script type="text/javascript">moveProgressBar('53.2');</script>
|
968
|
+
<dd class="example passed"><span class="passed_spec_name">finder_args should be set to the correct value</span></dd>
|
969
|
+
<script type="text/javascript">moveProgressBar('53.5');</script>
|
970
|
+
<dd class="example passed"><span class="passed_spec_name">method should be set to the correct value</span></dd>
|
971
|
+
<script type="text/javascript">moveProgressBar('53.8');</script>
|
972
|
+
<dd class="example passed"><span class="passed_spec_name">method_args should be set to the correct value</span></dd>
|
973
|
+
<script type="text/javascript">moveProgressBar('54.0');</script>
|
974
|
+
<dd class="example passed"><span class="passed_spec_name">target should be set to the correct value</span></dd>
|
975
|
+
<script type="text/javascript">moveProgressBar('54.3');</script>
|
976
|
+
<dd class="example passed"><span class="passed_spec_name">persistant should be set to the correct value</span></dd>
|
977
|
+
</dl>
|
978
|
+
</div>
|
979
|
+
<div id="div_group_51" class="example_group passed">
|
980
|
+
<dl style="margin-left: 30px;">
|
981
|
+
<dt id="example_group_51" class="passed">locking</dt>
|
982
|
+
<script type="text/javascript">moveProgressBar('54.6');</script>
|
983
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock</span></dd>
|
984
|
+
<script type="text/javascript">moveProgressBar('54.9');</script>
|
985
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock again with the same worker</span></dd>
|
986
|
+
<script type="text/javascript">moveProgressBar('55.1');</script>
|
987
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock if it has been locked</span></dd>
|
988
|
+
</dl>
|
989
|
+
</div>
|
990
|
+
<div id="div_group_52" class="example_group passed">
|
991
|
+
<dl style="margin-left: 30px;">
|
992
|
+
<dt id="example_group_52" class="passed">lock_next</dt>
|
993
|
+
<script type="text/javascript">moveProgressBar('55.4');</script>
|
994
|
+
<dd class="example passed"><span class="passed_spec_name">should return the next current instance locked to the worker</span></dd>
|
995
|
+
<script type="text/javascript">moveProgressBar('55.7');</script>
|
996
|
+
<dd class="example passed"><span class="passed_spec_name">should return nil if there are no current jobs without a lock</span></dd>
|
997
|
+
</dl>
|
998
|
+
</div>
|
999
|
+
<div id="div_group_53" class="example_group passed">
|
1000
|
+
<dl style="margin-left: 30px;">
|
1001
|
+
<dt id="example_group_53" class="passed">clear locks</dt>
|
1002
|
+
<script type="text/javascript">moveProgressBar('56.0');</script>
|
1003
|
+
<dd class="example passed"><span class="passed_spec_name">should clear every lock held by a worker</span></dd>
|
1004
|
+
</dl>
|
1005
|
+
</div>
|
1006
|
+
<div id="div_group_54" class="example_group passed">
|
1007
|
+
<dl style="margin-left: 30px;">
|
1008
|
+
<dt id="example_group_54" class="passed">queue_time</dt>
|
1009
|
+
<script type="text/javascript">moveProgressBar('56.2');</script>
|
1010
|
+
<dd class="example passed"><span class="passed_spec_name">should be nil if the queue is empty</span></dd>
|
1011
|
+
<script type="text/javascript">moveProgressBar('56.5');</script>
|
1012
|
+
<dd class="example passed"><span class="passed_spec_name">should be 0 if there is a current job</span></dd>
|
1013
|
+
<script type="text/javascript">moveProgressBar('56.8');</script>
|
1014
|
+
<dd class="example passed"><span class="passed_spec_name">should be the time to the next job</span></dd>
|
1015
|
+
</dl>
|
1016
|
+
</div>
|
1017
|
+
<div id="div_group_55" class="example_group passed">
|
1018
|
+
<dl style="margin-left: 30px;">
|
1019
|
+
<dt id="example_group_55" class="passed">with method chaining:</dt>
|
1020
|
+
</dl>
|
1021
|
+
</div>
|
1022
|
+
<div id="div_group_56" class="example_group passed">
|
1023
|
+
<dl style="margin-left: 45px;">
|
1024
|
+
<dt id="example_group_56" class="passed">success</dt>
|
1025
|
+
<script type="text/javascript">moveProgressBar('57.1');</script>
|
1026
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
1027
|
+
</dl>
|
1028
|
+
</div>
|
1029
|
+
<div id="div_group_57" class="example_group passed">
|
1030
|
+
<dl style="margin-left: 45px;">
|
1031
|
+
<dt id="example_group_57" class="passed">success=</dt>
|
1032
|
+
<script type="text/javascript">moveProgressBar('57.3');</script>
|
1033
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
1034
|
+
<script type="text/javascript">moveProgressBar('57.6');</script>
|
1035
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::Mock instance</span></dd>
|
1036
|
+
<script type="text/javascript">moveProgressBar('57.9');</script>
|
1037
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
1038
|
+
<script type="text/javascript">moveProgressBar('58.1');</script>
|
1039
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
1040
|
+
<script type="text/javascript">moveProgressBar('58.4');</script>
|
1041
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
1042
|
+
<script type="text/javascript">moveProgressBar('58.7');</script>
|
1043
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
1044
|
+
<script type="text/javascript">moveProgressBar('59.0');</script>
|
1045
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
1046
|
+
<script type="text/javascript">moveProgressBar('59.2');</script>
|
1047
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
1048
|
+
<script type="text/javascript">moveProgressBar('59.5');</script>
|
1049
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
1050
|
+
</dl>
|
1051
|
+
</div>
|
1052
|
+
<div id="div_group_58" class="example_group passed">
|
1053
|
+
<dl style="margin-left: 45px;">
|
1054
|
+
<dt id="example_group_58" class="passed">failure</dt>
|
1055
|
+
<script type="text/javascript">moveProgressBar('59.8');</script>
|
1056
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
1057
|
+
</dl>
|
1058
|
+
</div>
|
1059
|
+
<div id="div_group_59" class="example_group passed">
|
1060
|
+
<dl style="margin-left: 45px;">
|
1061
|
+
<dt id="example_group_59" class="passed">failure=</dt>
|
1062
|
+
<script type="text/javascript">moveProgressBar('60.1');</script>
|
1063
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
1064
|
+
<script type="text/javascript">moveProgressBar('60.3');</script>
|
1065
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::Mock instance</span></dd>
|
1066
|
+
<script type="text/javascript">moveProgressBar('60.6');</script>
|
1067
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
1068
|
+
<script type="text/javascript">moveProgressBar('60.9');</script>
|
1069
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
1070
|
+
<script type="text/javascript">moveProgressBar('61.2');</script>
|
1071
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
1072
|
+
<script type="text/javascript">moveProgressBar('61.4');</script>
|
1073
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
1074
|
+
<script type="text/javascript">moveProgressBar('61.7');</script>
|
1075
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
1076
|
+
<script type="text/javascript">moveProgressBar('62.0');</script>
|
1077
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
1078
|
+
<script type="text/javascript">moveProgressBar('62.2');</script>
|
1079
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
1080
|
+
</dl>
|
1081
|
+
</div>
|
1082
|
+
<div id="div_group_60" class="example_group passed">
|
1083
|
+
<dl style="margin-left: 45px;">
|
1084
|
+
<dt id="example_group_60" class="passed">ensure</dt>
|
1085
|
+
<script type="text/javascript">moveProgressBar('62.5');</script>
|
1086
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
1087
|
+
</dl>
|
1088
|
+
</div>
|
1089
|
+
<div id="div_group_61" class="example_group passed">
|
1090
|
+
<dl style="margin-left: 45px;">
|
1091
|
+
<dt id="example_group_61" class="passed">ensure=</dt>
|
1092
|
+
<script type="text/javascript">moveProgressBar('62.8');</script>
|
1093
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
1094
|
+
<script type="text/javascript">moveProgressBar('63.1');</script>
|
1095
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::Mock instance</span></dd>
|
1096
|
+
<script type="text/javascript">moveProgressBar('63.3');</script>
|
1097
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
1098
|
+
<script type="text/javascript">moveProgressBar('63.6');</script>
|
1099
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
1100
|
+
<script type="text/javascript">moveProgressBar('63.9');</script>
|
1101
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
1102
|
+
<script type="text/javascript">moveProgressBar('64.2');</script>
|
1103
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
1104
|
+
<script type="text/javascript">moveProgressBar('64.4');</script>
|
1105
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
1106
|
+
<script type="text/javascript">moveProgressBar('64.7');</script>
|
1107
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
1108
|
+
<script type="text/javascript">moveProgressBar('65.0');</script>
|
1109
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
1110
|
+
</dl>
|
1111
|
+
</div>
|
1112
|
+
<div id="div_group_62" class="example_group passed">
|
1113
|
+
<dl style="margin-left: 30px;">
|
1114
|
+
<dt id="example_group_62" class="passed">#for</dt>
|
1115
|
+
<script type="text/javascript">moveProgressBar('65.3');</script>
|
1116
|
+
<dd class="example passed"><span class="passed_spec_name">should find all jobs</span></dd>
|
1117
|
+
<script type="text/javascript">moveProgressBar('65.5');</script>
|
1118
|
+
<dd class="example passed"><span class="passed_spec_name">should find a job by name</span></dd>
|
1119
|
+
<script type="text/javascript">moveProgressBar('65.8');</script>
|
1120
|
+
<dd class="example passed"><span class="passed_spec_name">should return an empty array if no job is found</span></dd>
|
1121
|
+
</dl>
|
1122
|
+
</div>
|
1123
|
+
<div id="div_group_63" class="example_group passed">
|
1124
|
+
<dl style="margin-left: 0px;">
|
1125
|
+
<dt id="example_group_63" class="passed">Updater::ORM::Mongo</dt>
|
1126
|
+
</dl>
|
1127
|
+
</div>
|
1128
|
+
<div id="div_group_64" class="example_group passed">
|
1129
|
+
<dl style="margin-left: 15px;">
|
1130
|
+
<dt id="example_group_64" class="passed">behaves like an orm</dt>
|
1131
|
+
</dl>
|
1132
|
+
</div>
|
1133
|
+
<div id="div_group_65" class="example_group passed">
|
1134
|
+
<dl style="margin-left: 30px;">
|
1135
|
+
<dt id="example_group_65" class="passed">class methods</dt>
|
1136
|
+
<script type="text/javascript">moveProgressBar('66.1');</script>
|
1137
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: get</span></dd>
|
1138
|
+
<script type="text/javascript">moveProgressBar('66.3');</script>
|
1139
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: create</span></dd>
|
1140
|
+
<script type="text/javascript">moveProgressBar('66.6');</script>
|
1141
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: current</span></dd>
|
1142
|
+
<script type="text/javascript">moveProgressBar('66.9');</script>
|
1143
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: current_load</span></dd>
|
1144
|
+
<script type="text/javascript">moveProgressBar('67.2');</script>
|
1145
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: delayed</span></dd>
|
1146
|
+
<script type="text/javascript">moveProgressBar('67.4');</script>
|
1147
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: future</span></dd>
|
1148
|
+
<script type="text/javascript">moveProgressBar('67.7');</script>
|
1149
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: queue_time</span></dd>
|
1150
|
+
<script type="text/javascript">moveProgressBar('68.0');</script>
|
1151
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: lock_next</span></dd>
|
1152
|
+
<script type="text/javascript">moveProgressBar('68.3');</script>
|
1153
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: clear_locks</span></dd>
|
1154
|
+
<script type="text/javascript">moveProgressBar('68.5');</script>
|
1155
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: clear_all</span></dd>
|
1156
|
+
<script type="text/javascript">moveProgressBar('68.8');</script>
|
1157
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: setup</span></dd>
|
1158
|
+
<script type="text/javascript">moveProgressBar('69.1');</script>
|
1159
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: for</span></dd>
|
1160
|
+
<script type="text/javascript">moveProgressBar('69.3');</script>
|
1161
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: logger</span></dd>
|
1162
|
+
<script type="text/javascript">moveProgressBar('69.6');</script>
|
1163
|
+
<dd class="example passed"><span class="passed_spec_name">should have a class method: logger=</span></dd>
|
1164
|
+
</dl>
|
1165
|
+
</div>
|
1166
|
+
<div id="div_group_66" class="example_group passed">
|
1167
|
+
<dl style="margin-left: 30px;">
|
1168
|
+
<dt id="example_group_66" class="passed">instance methods</dt>
|
1169
|
+
<script type="text/javascript">moveProgressBar('69.9');</script>
|
1170
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: id</span></dd>
|
1171
|
+
<script type="text/javascript">moveProgressBar('70.2');</script>
|
1172
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: time</span></dd>
|
1173
|
+
<script type="text/javascript">moveProgressBar('70.4');</script>
|
1174
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: time=</span></dd>
|
1175
|
+
<script type="text/javascript">moveProgressBar('70.7');</script>
|
1176
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: target</span></dd>
|
1177
|
+
<script type="text/javascript">moveProgressBar('71.0');</script>
|
1178
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: target=</span></dd>
|
1179
|
+
<script type="text/javascript">moveProgressBar('71.3');</script>
|
1180
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder</span></dd>
|
1181
|
+
<script type="text/javascript">moveProgressBar('71.5');</script>
|
1182
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder=</span></dd>
|
1183
|
+
<script type="text/javascript">moveProgressBar('71.8');</script>
|
1184
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder_args</span></dd>
|
1185
|
+
<script type="text/javascript">moveProgressBar('72.1');</script>
|
1186
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: finder_args=</span></dd>
|
1187
|
+
<script type="text/javascript">moveProgressBar('72.4');</script>
|
1188
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method</span></dd>
|
1189
|
+
<script type="text/javascript">moveProgressBar('72.6');</script>
|
1190
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method=</span></dd>
|
1191
|
+
<script type="text/javascript">moveProgressBar('72.9');</script>
|
1192
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method_args</span></dd>
|
1193
|
+
<script type="text/javascript">moveProgressBar('73.2');</script>
|
1194
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: method_args=</span></dd>
|
1195
|
+
<script type="text/javascript">moveProgressBar('73.4');</script>
|
1196
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: name</span></dd>
|
1197
|
+
<script type="text/javascript">moveProgressBar('73.7');</script>
|
1198
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: name=</span></dd>
|
1199
|
+
<script type="text/javascript">moveProgressBar('74.0');</script>
|
1200
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: persistant</span></dd>
|
1201
|
+
<script type="text/javascript">moveProgressBar('74.3');</script>
|
1202
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: persistant=</span></dd>
|
1203
|
+
<script type="text/javascript">moveProgressBar('74.5');</script>
|
1204
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: save</span></dd>
|
1205
|
+
<script type="text/javascript">moveProgressBar('74.8');</script>
|
1206
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: destroy</span></dd>
|
1207
|
+
<script type="text/javascript">moveProgressBar('75.1');</script>
|
1208
|
+
<dd class="example passed"><span class="passed_spec_name">should have an instance method: lock</span></dd>
|
1209
|
+
</dl>
|
1210
|
+
</div>
|
1211
|
+
<div id="div_group_67" class="example_group passed">
|
1212
|
+
<dl style="margin-left: 30px;">
|
1213
|
+
<dt id="example_group_67" class="passed">constants</dt>
|
1214
|
+
<script type="text/javascript">moveProgressBar('75.4');</script>
|
1215
|
+
<dd class="example passed"><span class="passed_spec_name">should have a constant: FINDER</span></dd>
|
1216
|
+
<script type="text/javascript">moveProgressBar('75.6');</script>
|
1217
|
+
<dd class="example passed"><span class="passed_spec_name">should have a constant: ID</span></dd>
|
1218
|
+
</dl>
|
1219
|
+
</div>
|
1220
|
+
<div id="div_group_68" class="example_group passed">
|
1221
|
+
<dl style="margin-left: 30px;">
|
1222
|
+
<dt id="example_group_68" class="passed">clear_all</dt>
|
1223
|
+
<script type="text/javascript">moveProgressBar('75.9');</script>
|
1224
|
+
<dd class="example passed"><span class="passed_spec_name">should remove all jobs</span></dd>
|
1225
|
+
</dl>
|
1226
|
+
</div>
|
1227
|
+
<div id="div_group_69" class="example_group passed">
|
1228
|
+
<dl style="margin-left: 30px;">
|
1229
|
+
<dt id="example_group_69" class="passed">an instance</dt>
|
1230
|
+
<script type="text/javascript">moveProgressBar('76.2');</script>
|
1231
|
+
<dd class="example passed"><span class="passed_spec_name">should have an id</span></dd>
|
1232
|
+
<script type="text/javascript">moveProgressBar('76.5');</script>
|
1233
|
+
<dd class="example passed"><span class="passed_spec_name">should be in the current list</span></dd>
|
1234
|
+
<script type="text/javascript">moveProgressBar('76.7');</script>
|
1235
|
+
<dd class="example passed"><span class="passed_spec_name">should be retrieved with 'get'</span></dd>
|
1236
|
+
<script type="text/javascript">moveProgressBar('77.0');</script>
|
1237
|
+
<dd class="example passed"><span class="passed_spec_name">should be removed with 'destroy'</span></dd>
|
1238
|
+
</dl>
|
1239
|
+
</div>
|
1240
|
+
<div id="div_group_70" class="example_group passed">
|
1241
|
+
<dl style="margin-left: 45px;">
|
1242
|
+
<dt id="example_group_70" class="passed">getters</dt>
|
1243
|
+
<script type="text/javascript">moveProgressBar('77.3');</script>
|
1244
|
+
<dd class="example passed"><span class="passed_spec_name">time should be set to the correct value</span></dd>
|
1245
|
+
<script type="text/javascript">moveProgressBar('77.5');</script>
|
1246
|
+
<dd class="example passed"><span class="passed_spec_name">finder should be set to the correct value</span></dd>
|
1247
|
+
<script type="text/javascript">moveProgressBar('77.8');</script>
|
1248
|
+
<dd class="example passed"><span class="passed_spec_name">finder_args should be set to the correct value</span></dd>
|
1249
|
+
<script type="text/javascript">moveProgressBar('78.1');</script>
|
1250
|
+
<dd class="example passed"><span class="passed_spec_name">method should be set to the correct value</span></dd>
|
1251
|
+
<script type="text/javascript">moveProgressBar('78.4');</script>
|
1252
|
+
<dd class="example passed"><span class="passed_spec_name">method_args should be set to the correct value</span></dd>
|
1253
|
+
<script type="text/javascript">moveProgressBar('78.6');</script>
|
1254
|
+
<dd class="example passed"><span class="passed_spec_name">target should be set to the correct value</span></dd>
|
1255
|
+
<script type="text/javascript">moveProgressBar('78.9');</script>
|
1256
|
+
<dd class="example passed"><span class="passed_spec_name">persistant should be set to the correct value</span></dd>
|
1257
|
+
</dl>
|
1258
|
+
</div>
|
1259
|
+
<div id="div_group_71" class="example_group passed">
|
1260
|
+
<dl style="margin-left: 30px;">
|
1261
|
+
<dt id="example_group_71" class="passed">locking</dt>
|
1262
|
+
<script type="text/javascript">moveProgressBar('79.2');</script>
|
1263
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock</span></dd>
|
1264
|
+
<script type="text/javascript">moveProgressBar('79.5');</script>
|
1265
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock again with the same worker</span></dd>
|
1266
|
+
<script type="text/javascript">moveProgressBar('79.7');</script>
|
1267
|
+
<dd class="example passed"><span class="passed_spec_name">an instance should lock if it has been locked</span></dd>
|
1268
|
+
</dl>
|
1269
|
+
</div>
|
1270
|
+
<div id="div_group_72" class="example_group passed">
|
1271
|
+
<dl style="margin-left: 30px;">
|
1272
|
+
<dt id="example_group_72" class="passed">lock_next</dt>
|
1273
|
+
<script type="text/javascript">moveProgressBar('80.0');</script>
|
1274
|
+
<dd class="example passed"><span class="passed_spec_name">should return the next current instance locked to the worker</span></dd>
|
1275
|
+
<script type="text/javascript">moveProgressBar('80.3');</script>
|
1276
|
+
<dd class="example passed"><span class="passed_spec_name">should return nil if there are no current jobs without a lock</span></dd>
|
1277
|
+
</dl>
|
1278
|
+
</div>
|
1279
|
+
<div id="div_group_73" class="example_group passed">
|
1280
|
+
<dl style="margin-left: 30px;">
|
1281
|
+
<dt id="example_group_73" class="passed">clear locks</dt>
|
1282
|
+
<script type="text/javascript">moveProgressBar('80.6');</script>
|
1283
|
+
<dd class="example passed"><span class="passed_spec_name">should clear every lock held by a worker</span></dd>
|
1284
|
+
</dl>
|
1285
|
+
</div>
|
1286
|
+
<div id="div_group_74" class="example_group passed">
|
1287
|
+
<dl style="margin-left: 30px;">
|
1288
|
+
<dt id="example_group_74" class="passed">queue_time</dt>
|
1289
|
+
<script type="text/javascript">moveProgressBar('80.8');</script>
|
1290
|
+
<dd class="example passed"><span class="passed_spec_name">should be nil if the queue is empty</span></dd>
|
1291
|
+
<script type="text/javascript">moveProgressBar('81.1');</script>
|
1292
|
+
<dd class="example passed"><span class="passed_spec_name">should be 0 if there is a current job</span></dd>
|
1293
|
+
<script type="text/javascript">moveProgressBar('81.4');</script>
|
1294
|
+
<dd class="example passed"><span class="passed_spec_name">should be the time to the next job</span></dd>
|
1295
|
+
</dl>
|
1296
|
+
</div>
|
1297
|
+
<div id="div_group_75" class="example_group passed">
|
1298
|
+
<dl style="margin-left: 30px;">
|
1299
|
+
<dt id="example_group_75" class="passed">with method chaining:</dt>
|
1300
|
+
</dl>
|
1301
|
+
</div>
|
1302
|
+
<div id="div_group_76" class="example_group passed">
|
1303
|
+
<dl style="margin-left: 45px;">
|
1304
|
+
<dt id="example_group_76" class="passed">success</dt>
|
1305
|
+
<script type="text/javascript">moveProgressBar('81.6');</script>
|
1306
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
1307
|
+
</dl>
|
1308
|
+
</div>
|
1309
|
+
<div id="div_group_77" class="example_group passed">
|
1310
|
+
<dl style="margin-left: 45px;">
|
1311
|
+
<dt id="example_group_77" class="passed">success=</dt>
|
1312
|
+
<script type="text/javascript">moveProgressBar('81.9');</script>
|
1313
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
1314
|
+
<script type="text/javascript">moveProgressBar('82.2');</script>
|
1315
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::Mongo instance</span></dd>
|
1316
|
+
<script type="text/javascript">moveProgressBar('82.5');</script>
|
1317
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
1318
|
+
<script type="text/javascript">moveProgressBar('82.7');</script>
|
1319
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
1320
|
+
<script type="text/javascript">moveProgressBar('83.0');</script>
|
1321
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
1322
|
+
<script type="text/javascript">moveProgressBar('83.3');</script>
|
1323
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
1324
|
+
<script type="text/javascript">moveProgressBar('83.6');</script>
|
1325
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
1326
|
+
<script type="text/javascript">moveProgressBar('83.8');</script>
|
1327
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
1328
|
+
<script type="text/javascript">moveProgressBar('84.1');</script>
|
1329
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
1330
|
+
</dl>
|
1331
|
+
</div>
|
1332
|
+
<div id="div_group_78" class="example_group passed">
|
1333
|
+
<dl style="margin-left: 45px;">
|
1334
|
+
<dt id="example_group_78" class="passed">failure</dt>
|
1335
|
+
<script type="text/javascript">moveProgressBar('84.4');</script>
|
1336
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
1337
|
+
</dl>
|
1338
|
+
</div>
|
1339
|
+
<div id="div_group_79" class="example_group passed">
|
1340
|
+
<dl style="margin-left: 45px;">
|
1341
|
+
<dt id="example_group_79" class="passed">failure=</dt>
|
1342
|
+
<script type="text/javascript">moveProgressBar('84.6');</script>
|
1343
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
1344
|
+
<script type="text/javascript">moveProgressBar('84.9');</script>
|
1345
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::Mongo instance</span></dd>
|
1346
|
+
<script type="text/javascript">moveProgressBar('85.2');</script>
|
1347
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
1348
|
+
<script type="text/javascript">moveProgressBar('85.5');</script>
|
1349
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
1350
|
+
<script type="text/javascript">moveProgressBar('85.7');</script>
|
1351
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
1352
|
+
<script type="text/javascript">moveProgressBar('86.0');</script>
|
1353
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
1354
|
+
<script type="text/javascript">moveProgressBar('86.3');</script>
|
1355
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
1356
|
+
<script type="text/javascript">moveProgressBar('86.6');</script>
|
1357
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
1358
|
+
<script type="text/javascript">moveProgressBar('86.8');</script>
|
1359
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
1360
|
+
</dl>
|
1361
|
+
</div>
|
1362
|
+
<div id="div_group_80" class="example_group passed">
|
1363
|
+
<dl style="margin-left: 45px;">
|
1364
|
+
<dt id="example_group_80" class="passed">ensure</dt>
|
1365
|
+
<script type="text/javascript">moveProgressBar('87.1');</script>
|
1366
|
+
<dd class="example passed"><span class="passed_spec_name">should initially be empty</span></dd>
|
1367
|
+
</dl>
|
1368
|
+
</div>
|
1369
|
+
<div id="div_group_81" class="example_group passed">
|
1370
|
+
<dl style="margin-left: 45px;">
|
1371
|
+
<dt id="example_group_81" class="passed">ensure=</dt>
|
1372
|
+
<script type="text/javascript">moveProgressBar('87.4');</script>
|
1373
|
+
<dd class="example passed"><span class="passed_spec_name">should add an Update instance</span></dd>
|
1374
|
+
<script type="text/javascript">moveProgressBar('87.7');</script>
|
1375
|
+
<dd class="example passed"><span class="passed_spec_name">should add a Updater::ORM::Mongo instance</span></dd>
|
1376
|
+
<script type="text/javascript">moveProgressBar('87.9');</script>
|
1377
|
+
<dd class="example passed"><span class="passed_spec_name">should add an id</span></dd>
|
1378
|
+
<script type="text/javascript">moveProgressBar('88.2');</script>
|
1379
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from an array</span></dd>
|
1380
|
+
<script type="text/javascript">moveProgressBar('88.5');</script>
|
1381
|
+
<dd class="example passed"><span class="passed_spec_name">nested arrays should set param</span></dd>
|
1382
|
+
<script type="text/javascript">moveProgressBar('88.7');</script>
|
1383
|
+
<dd class="example passed"><span class="passed_spec_name">should add multiple items from a hash</span></dd>
|
1384
|
+
<script type="text/javascript">moveProgressBar('89.0');</script>
|
1385
|
+
<dd class="example passed"><span class="passed_spec_name">should set the parameters from a hash</span></dd>
|
1386
|
+
<script type="text/javascript">moveProgressBar('89.3');</script>
|
1387
|
+
<dd class="example passed"><span class="passed_spec_name">should clear the chain with nil</span></dd>
|
1388
|
+
<script type="text/javascript">moveProgressBar('89.6');</script>
|
1389
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT be a destructive assignment</span></dd>
|
1390
|
+
</dl>
|
1391
|
+
</div>
|
1392
|
+
<div id="div_group_82" class="example_group passed">
|
1393
|
+
<dl style="margin-left: 30px;">
|
1394
|
+
<dt id="example_group_82" class="passed">#for</dt>
|
1395
|
+
<script type="text/javascript">moveProgressBar('89.8');</script>
|
1396
|
+
<dd class="example passed"><span class="passed_spec_name">should find all jobs</span></dd>
|
1397
|
+
<script type="text/javascript">moveProgressBar('90.1');</script>
|
1398
|
+
<dd class="example passed"><span class="passed_spec_name">should find a job by name</span></dd>
|
1399
|
+
<script type="text/javascript">moveProgressBar('90.4');</script>
|
1400
|
+
<dd class="example passed"><span class="passed_spec_name">should return an empty array if no job is found</span></dd>
|
1401
|
+
</dl>
|
1402
|
+
</div>
|
1403
|
+
<div id="div_group_83" class="example_group passed">
|
1404
|
+
<dl style="margin-left: 0px;">
|
1405
|
+
<dt id="example_group_83" class="passed">named request</dt>
|
1406
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1407
|
+
<script type="text/javascript">makeYellow('div_group_83');</script>
|
1408
|
+
<script type="text/javascript">makeYellow('example_group_83');</script>
|
1409
|
+
<script type="text/javascript">moveProgressBar('90.7');</script>
|
1410
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should be found by name when target is an instance (PENDING: ORM#for)</span></dd>
|
1411
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1412
|
+
<script type="text/javascript">makeYellow('div_group_83');</script>
|
1413
|
+
<script type="text/javascript">makeYellow('example_group_83');</script>
|
1414
|
+
<script type="text/javascript">moveProgressBar('90.9');</script>
|
1415
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should be found by name when target is a class (PENDING: ORM#for)</span></dd>
|
1416
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1417
|
+
<script type="text/javascript">makeYellow('div_group_83');</script>
|
1418
|
+
<script type="text/javascript">makeYellow('example_group_83');</script>
|
1419
|
+
<script type="text/javascript">moveProgressBar('91.2');</script>
|
1420
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should return all updates for a given target (PENDING: ORM#for)</span></dd>
|
1421
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1422
|
+
<script type="text/javascript">makeYellow('div_group_83');</script>
|
1423
|
+
<script type="text/javascript">makeYellow('example_group_83');</script>
|
1424
|
+
<script type="text/javascript">moveProgressBar('91.5');</script>
|
1425
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should not include locked updates (PENDING: ORM#for)</span></dd>
|
1426
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1427
|
+
<script type="text/javascript">makeYellow('div_group_83');</script>
|
1428
|
+
<script type="text/javascript">makeYellow('example_group_83');</script>
|
1429
|
+
<script type="text/javascript">moveProgressBar('91.8');</script>
|
1430
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should not return rusults with the wrong name (PENDING: ORM#for)</span></dd>
|
1431
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1432
|
+
<script type="text/javascript">makeYellow('div_group_83');</script>
|
1433
|
+
<script type="text/javascript">makeYellow('example_group_83');</script>
|
1434
|
+
<script type="text/javascript">moveProgressBar('92.0');</script>
|
1435
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">should not return results for the wring target (PENDING: ORM#for)</span></dd>
|
1436
|
+
</dl>
|
1437
|
+
</div>
|
1438
|
+
<div id="div_group_84" class="example_group passed">
|
1439
|
+
<dl style="margin-left: 0px;">
|
1440
|
+
<dt id="example_group_84" class="passed">Special Parameter Substitution</dt>
|
1441
|
+
<script type="text/javascript">moveProgressBar('92.3');</script>
|
1442
|
+
<dd class="example passed"><span class="passed_spec_name">should substitute __job__ with job that chained in</span></dd>
|
1443
|
+
<script type="text/javascript">moveProgressBar('92.6');</script>
|
1444
|
+
<dd class="example passed"><span class="passed_spec_name">should substitute __params__ with params</span></dd>
|
1445
|
+
<script type="text/javascript">moveProgressBar('92.8');</script>
|
1446
|
+
<dd class="example passed"><span class="passed_spec_name">should substitute __self__ with the current job</span></dd>
|
1447
|
+
</dl>
|
1448
|
+
</div>
|
1449
|
+
<div id="div_group_85" class="example_group passed">
|
1450
|
+
<dl style="margin-left: 0px;">
|
1451
|
+
<dt id="example_group_85" class="passed">adding an immidiate update request</dt>
|
1452
|
+
<script type="text/javascript">moveProgressBar('93.1');</script>
|
1453
|
+
<dd class="example passed"><span class="passed_spec_name">with a class target</span></dd>
|
1454
|
+
<script type="text/javascript">moveProgressBar('93.4');</script>
|
1455
|
+
<dd class="example passed"><span class="passed_spec_name">with an conforming instance target</span></dd>
|
1456
|
+
<script type="text/javascript">moveProgressBar('93.7');</script>
|
1457
|
+
<dd class="example passed"><span class="passed_spec_name">with an custome finder</span></dd>
|
1458
|
+
</dl>
|
1459
|
+
</div>
|
1460
|
+
<div id="div_group_86" class="example_group passed">
|
1461
|
+
<dl style="margin-left: 0px;">
|
1462
|
+
<dt id="example_group_86" class="passed">chained request</dt>
|
1463
|
+
<script type="text/javascript">moveProgressBar('93.9');</script>
|
1464
|
+
<dd class="example passed"><span class="passed_spec_name">should not be in current or delayed queue</span></dd>
|
1465
|
+
<script type="text/javascript">moveProgressBar('94.2');</script>
|
1466
|
+
<dd class="example passed"><span class="passed_spec_name">should be persistant</span></dd>
|
1467
|
+
</dl>
|
1468
|
+
</div>
|
1469
|
+
<div id="div_group_87" class="example_group passed">
|
1470
|
+
<dl style="margin-left: 0px;">
|
1471
|
+
<dt id="example_group_87" class="passed">adding an delayed update request</dt>
|
1472
|
+
<script type="text/javascript">moveProgressBar('94.5');</script>
|
1473
|
+
<dd class="example passed"><span class="passed_spec_name">with a class target</span></dd>
|
1474
|
+
<script type="text/javascript">moveProgressBar('94.8');</script>
|
1475
|
+
<dd class="example passed"><span class="passed_spec_name">with an conforming instance target</span></dd>
|
1476
|
+
<script type="text/javascript">moveProgressBar('95.0');</script>
|
1477
|
+
<dd class="example passed"><span class="passed_spec_name">with an custome finder</span></dd>
|
1478
|
+
</dl>
|
1479
|
+
</div>
|
1480
|
+
<div id="div_group_88" class="example_group passed">
|
1481
|
+
<dl style="margin-left: 0px;">
|
1482
|
+
<dt id="example_group_88" class="passed">Updater::ThreadWorker</dt>
|
1483
|
+
<script type="text/javascript">moveProgressBar('95.3');</script>
|
1484
|
+
<dd class="example passed"><span class="passed_spec_name">should not print anything when quiet</span></dd>
|
1485
|
+
<script type="text/javascript">moveProgressBar('95.6');</script>
|
1486
|
+
<dd class="example passed"><span class="passed_spec_name">should have a name</span></dd>
|
1487
|
+
</dl>
|
1488
|
+
</div>
|
1489
|
+
<div id="div_group_89" class="example_group passed">
|
1490
|
+
<dl style="margin-left: 15px;">
|
1491
|
+
<dt id="example_group_89" class="passed">loop thread control:</dt>
|
1492
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1493
|
+
<script type="text/javascript">makeYellow('div_group_89');</script>
|
1494
|
+
<script type="text/javascript">makeYellow('example_group_89');</script>
|
1495
|
+
<script type="text/javascript">moveProgressBar('95.9');</script>
|
1496
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">The loop should run when the worker is started (PENDING: No reason given)</span></dd>
|
1497
|
+
<script type="text/javascript">makeYellow('rspec-header');</script>
|
1498
|
+
<script type="text/javascript">makeYellow('div_group_89');</script>
|
1499
|
+
<script type="text/javascript">makeYellow('example_group_89');</script>
|
1500
|
+
<script type="text/javascript">moveProgressBar('96.1');</script>
|
1501
|
+
<dd class="example not_implemented"><span class="not_implemented_spec_name">The loop should run with USR1 signal (PENDING: No reason given)</span></dd>
|
1502
|
+
</dl>
|
1503
|
+
</div>
|
1504
|
+
<div id="div_group_90" class="example_group passed">
|
1505
|
+
<dl style="margin-left: 0px;">
|
1506
|
+
<dt id="example_group_90" class="passed">working off jobs:</dt>
|
1507
|
+
</dl>
|
1508
|
+
</div>
|
1509
|
+
<div id="div_group_91" class="example_group passed">
|
1510
|
+
<dl style="margin-left: 15px;">
|
1511
|
+
<dt id="example_group_91" class="passed">Update#work_off</dt>
|
1512
|
+
<script type="text/javascript">moveProgressBar('96.4');</script>
|
1513
|
+
<dd class="example passed"><span class="passed_spec_name">should run and immidiate job</span></dd>
|
1514
|
+
<script type="text/javascript">moveProgressBar('96.7');</script>
|
1515
|
+
<dd class="example passed"><span class="passed_spec_name">should aviod conflicts among mutiple workers</span></dd>
|
1516
|
+
<script type="text/javascript">moveProgressBar('96.9');</script>
|
1517
|
+
<dd class="example passed"><span class="passed_spec_name">should return 0 if there are more jobs waiting</span></dd>
|
1518
|
+
<script type="text/javascript">moveProgressBar('97.2');</script>
|
1519
|
+
<dd class="example passed"><span class="passed_spec_name">should return the number of seconds till the next job if there are no jobs to be run</span></dd>
|
1520
|
+
<script type="text/javascript">moveProgressBar('97.5');</script>
|
1521
|
+
<dd class="example passed"><span class="passed_spec_name">should return nil if the job queue is empty</span></dd>
|
1522
|
+
</dl>
|
1523
|
+
</div>
|
1524
|
+
<div id="div_group_92" class="example_group passed">
|
1525
|
+
<dl style="margin-left: 0px;">
|
1526
|
+
<dt id="example_group_92" class="passed">running an update</dt>
|
1527
|
+
<script type="text/javascript">moveProgressBar('97.8');</script>
|
1528
|
+
<dd class="example passed"><span class="passed_spec_name">should call the named method with a class target</span></dd>
|
1529
|
+
<script type="text/javascript">moveProgressBar('98.0');</script>
|
1530
|
+
<dd class="example passed"><span class="passed_spec_name">should call the named method with an conforming instance target</span></dd>
|
1531
|
+
<script type="text/javascript">moveProgressBar('98.3');</script>
|
1532
|
+
<dd class="example passed"><span class="passed_spec_name">should delete the record once it is run</span></dd>
|
1533
|
+
<script type="text/javascript">moveProgressBar('98.6');</script>
|
1534
|
+
<dd class="example passed"><span class="passed_spec_name">should delete the record if there is a failure</span></dd>
|
1535
|
+
<script type="text/javascript">moveProgressBar('98.9');</script>
|
1536
|
+
<dd class="example passed"><span class="passed_spec_name">should NOT delete the record if it is a chain record</span></dd>
|
1537
|
+
</dl>
|
1538
|
+
</div>
|
1539
|
+
<div id="div_group_93" class="example_group passed">
|
1540
|
+
<dl style="margin-left: 0px;">
|
1541
|
+
<dt id="example_group_93" class="passed">Updater::Update</dt>
|
1542
|
+
<script type="text/javascript">moveProgressBar('99.1');</script>
|
1543
|
+
<dd class="example passed"><span class="passed_spec_name">should have a version matching the VERSION file</span></dd>
|
1544
|
+
<script type="text/javascript">moveProgressBar('99.4');</script>
|
1545
|
+
<dd class="example passed"><span class="passed_spec_name">should have its own inspect method</span></dd>
|
1546
|
+
</dl>
|
1547
|
+
</div>
|
1548
|
+
<div id="div_group_94" class="example_group passed">
|
1549
|
+
<dl style="margin-left: 0px;">
|
1550
|
+
<dt id="example_group_94" class="passed">Gemspec:</dt>
|
1551
|
+
<script type="text/javascript">moveProgressBar('99.7');</script>
|
1552
|
+
<dd class="example passed"><span class="passed_spec_name">should match version</span></dd>
|
1553
|
+
</dl>
|
1554
|
+
</div>
|
1555
|
+
<div id="div_group_95" class="example_group passed">
|
1556
|
+
<dl style="margin-left: 0px;">
|
1557
|
+
<dt id="example_group_95" class="passed">Util.tempio</dt>
|
1558
|
+
<script type="text/javascript">moveProgressBar('100.0');</script>
|
1559
|
+
<dd class="example passed"><span class="passed_spec_name">should return an unlinked file</span></dd>
|
1560
|
+
</dl>
|
1561
|
+
</div>
|
1562
|
+
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>1.643305119 seconds</strong>";</script>
|
1563
|
+
<script type="text/javascript">document.getElementById('totals').innerHTML = "366 examples, 0 failures, 24 pending";</script>
|
1564
|
+
</div>
|
1565
|
+
</div>
|
1566
|
+
</body>
|
1567
|
+
</html>
|