-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.html
285 lines (262 loc) · 10.6 KB
/
spec.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>RSpec results</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Pragma" content="no-cache" />
<style type="text/css">
body {
margin: 0;
padding: 0;
background: #fff;
font-size: 80%;
}
</style>
</head>
<body>
<div class="rspec-report">
<script type="text/javascript">
// <![CDATA[
function moveProgressBar(percentDone) {
document.getElementById("rspec-header").style.width = percentDone +"%";
}
function makeRed(element_id) {
document.getElementById(element_id).style.background = '#C40D0D';
document.getElementById(element_id).style.color = '#FFFFFF';
}
function makeYellow(element_id) {
if (element_id == "rspec-header" && document.getElementById(element_id).style.background != '#C40D0D')
{
document.getElementById(element_id).style.background = '#FAF834';
document.getElementById(element_id).style.color = '#000000';
}
else
{
document.getElementById(element_id).style.background = '#FAF834';
document.getElementById(element_id).style.color = '#000000';
}
}
// ]]>
</script>
<style type="text/css">
#rspec-header {
background: #65C400; color: #fff;
}
.rspec-report h1 {
margin: 0px 10px 0px 10px;
padding: 10px;
font-family: "Lucida Grande", Helvetica, sans-serif;
font-size: 1.8em;
}
#summary {
margin: 0; padding: 5px 10px;
font-family: "Lucida Grande", Helvetica, sans-serif;
text-align: right;
position: absolute;
top: 0px;
right: 0px;
}
#summary p {
margin: 0 0 0 2px;
}
#summary #totals {
font-size: 1.2em;
}
.example_group {
margin: 0 10px 5px;
background: #fff;
}
dl {
margin: 0; padding: 0 0 5px;
font: normal 11px "Lucida Grande", Helvetica, sans-serif;
}
dt {
padding: 3px;
background: #65C400;
color: #fff;
font-weight: bold;
}
dd {
margin: 5px 0 5px 5px;
padding: 3px 3px 3px 18px;
}
dd.spec.passed {
border-left: 5px solid #65C400;
border-bottom: 1px solid #65C400;
background: #DBFFB4; color: #3D7700;
}
dd.spec.failed {
border-left: 5px solid #C20000;
border-bottom: 1px solid #C20000;
color: #C20000; background: #FFFBD3;
}
dd.spec.not_implemented {
border-left: 5px solid #FAF834;
border-bottom: 1px solid #FAF834;
background: #FCFB98; color: #131313;
}
dd.spec.pending_fixed {
border-left: 5px solid #0000C2;
border-bottom: 1px solid #0000C2;
color: #0000C2; background: #D3FBFF;
}
.backtrace {
color: #000;
font-size: 12px;
}
a {
color: #BE5C00;
}
/* Ruby code, style similar to vibrant ink */
.ruby {
font-size: 12px;
font-family: monospace;
color: white;
background-color: black;
padding: 0.1em 0 0.2em 0;
}
.ruby .keyword { color: #FF6600; }
.ruby .constant { color: #339999; }
.ruby .attribute { color: white; }
.ruby .global { color: white; }
.ruby .module { color: white; }
.ruby .class { color: white; }
.ruby .string { color: #66FF00; }
.ruby .ident { color: white; }
.ruby .method { color: #FFCC00; }
.ruby .number { color: white; }
.ruby .char { color: white; }
.ruby .comment { color: #9933CC; }
.ruby .symbol { color: white; }
.ruby .regex { color: #44B4CC; }
.ruby .punct { color: white; }
.ruby .escape { color: white; }
.ruby .interp { color: white; }
.ruby .expr { color: white; }
.ruby .offending { background-color: gray; }
.ruby .linenum {
width: 75px;
padding: 0.1em 1em 0.2em 0;
color: #000000;
background-color: #FFFBD3;
}
</style>
<div id="rspec-header">
<h1>RSpec Results</h1>
<div id="summary">
<p id="totals"> </p>
<p id="duration"> </p>
</div>
</div>
<div class="results">
<div class="example_group">
<dl>
<dt id="example_group_1">OpenidsController</dt>
<script type="text/javascript">moveProgressBar('3.5');</script>
<dd class="spec passed"><span class="passed_spec_name">should not do any processing if OpenID is not enabled</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_2">OpenidsController GET requests on :create action</dt>
<script type="text/javascript">moveProgressBar('7.1');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail in create when OpenID isn't in the allowed list</span></dd>
<script type="text/javascript">moveProgressBar('10.7');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail in create when OpenID is in the ban list</span></dd>
<script type="text/javascript">moveProgressBar('14.2');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail in create when a non-normalized, banned, OpenID is given</span></dd>
<script type="text/javascript">moveProgressBar('17.8');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail in create when no OpenID is found at the specified URL</span></dd>
<script type="text/javascript">moveProgressBar('21.4');</script>
<dd class="spec passed"><span class="passed_spec_name">should redirect from create to the OpenID provider when everything else is ok</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_3">OpenidsController GET requests on :complete action</dt>
<script type="text/javascript">moveProgressBar('25.0');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail if the OpenID login failed</span></dd>
<script type="text/javascript">moveProgressBar('28.5');</script>
<dd class="spec passed"><span class="passed_spec_name">should set the time zone if it was supplied</span></dd>
<script type="text/javascript">moveProgressBar('32.1');</script>
<dd class="spec passed"><span class="passed_spec_name">should set the time zone to UTC if it wasn't supplied</span></dd>
<script type="text/javascript">moveProgressBar('35.7');</script>
<dd class="spec passed"><span class="passed_spec_name">should set the name to the nickname if it is received</span></dd>
<script type="text/javascript">moveProgressBar('39.2');</script>
<dd class="spec passed"><span class="passed_spec_name">should set the name to the identity URL if no nickname is received</span></dd>
<script type="text/javascript">moveProgressBar('42.8');</script>
<dd class="spec passed"><span class="passed_spec_name">should create a new participant if one wasn't found</span></dd>
<script type="text/javascript">moveProgressBar('46.4');</script>
<dd class="spec passed"><span class="passed_spec_name">should load an existing participant if one was found</span></dd>
<script type="text/javascript">moveProgressBar('50.0');</script>
<dd class="spec passed"><span class="passed_spec_name">should make a participant an admin if they are in the admin list</span></dd>
<script type="text/javascript">moveProgressBar('53.5');</script>
<dd class="spec passed"><span class="passed_spec_name">should not make a participant an admin if they aren't in the admin list</span></dd>
<script type="text/javascript">moveProgressBar('57.1');</script>
<dd class="spec passed"><span class="passed_spec_name">should not make a participant an admin if the admin list is empty</span></dd>
<script type="text/javascript">moveProgressBar('60.7');</script>
<dd class="spec passed"><span class="passed_spec_name">should redirect on a failed save</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_4">OpenidsController GET requests on :complete action on a successful save</dt>
<script type="text/javascript">moveProgressBar('64.2');</script>
<dd class="spec passed"><span class="passed_spec_name">should set session[:whoami]</span></dd>
<script type="text/javascript">moveProgressBar('67.8');</script>
<dd class="spec passed"><span class="passed_spec_name">should create a new keyword if the participant was new</span></dd>
<script type="text/javascript">moveProgressBar('71.4');</script>
<dd class="spec passed"><span class="passed_spec_name">should redirect to the chat room list</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_5">ParticipantsController GET requests on :new action</dt>
<script type="text/javascript">moveProgressBar('75.0');</script>
<dd class="spec passed"><span class="passed_spec_name">should log a user out if they are currently logged in</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_6">ParticipantsController POST requests on :create action</dt>
<script type="text/javascript">moveProgressBar('78.5');</script>
<dd class="spec passed"><span class="passed_spec_name">should not do anything if dummy login is disabled</span></dd>
<script type="text/javascript">moveProgressBar('82.1');</script>
<dd class="spec passed"><span class="passed_spec_name">should log the user in (test for getting full coverage, don't need to test this section)</span></dd>
<script type="text/javascript">moveProgressBar('85.7');</script>
<dd class="spec passed"><span class="passed_spec_name">should redirect if login fails (test for getting full coverage, don't need to test this section)</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_7">ParticipantsController GET requests on :edit action</dt>
<script type="text/javascript">moveProgressBar('89.2');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail if the current user is not the one being modified</span></dd>
<script type="text/javascript">moveProgressBar('92.8');</script>
<dd class="spec passed"><span class="passed_spec_name">should load the user and render</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_8">ParticipantsController POST requests on :update action</dt>
<script type="text/javascript">moveProgressBar('96.4');</script>
<dd class="spec passed"><span class="passed_spec_name">should fail if the current user is not the one being modified</span></dd>
</dl>
</div>
<div class="example_group">
<dl>
<dt id="example_group_9">OpenidsHelper</dt>
<script type="text/javascript">moveProgressBar('100.0');</script>
<dd class="spec passed"><span class="passed_spec_name">should be included in the object returned by #helper</span></dd>
</dl>
</div>
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0.636541 seconds</strong>";</script>
<script type="text/javascript">document.getElementById('totals').innerHTML = "28 examples, 0 failures";</script>
</div>
</div>
</body>
</html>