Skip to content
Newer
Older
100644 229 lines (205 sloc) 6.21 KB
0254396 @anujaware I have created .html files for specs
anujaware authored
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 function moveProgressBar(percentDone) {
22 document.getElementById("rspec-header").style.width = percentDone +"%";
23 }
24 function makeRed(element_id) {
25 document.getElementById(element_id).style.background = '#C40D0D';
26 document.getElementById(element_id).style.color = '#FFFFFF';
27 }
28
29 function makeYellow(element_id) {
30 if (element_id == "rspec-header" && document.getElementById(element_id).style.background != '#C40D0D')
31 {
32 document.getElementById(element_id).style.background = '#FAF834';
33 document.getElementById(element_id).style.color = '#000000';
34 }
35 else
36 {
37 document.getElementById(element_id).style.background = '#FAF834';
38 document.getElementById(element_id).style.color = '#000000';
39 }
40 }
41
42 // ]]>
43 </script>
44 <style type="text/css">
45 #rspec-header {
46 background: #65C400; color: #fff; height: 4em;
47 }
48
49 .rspec-report h1 {
50 margin: 0px 10px 0px 10px;
51 padding: 10px;
52 font-family: "Lucida Grande", Helvetica, sans-serif;
53 font-size: 1.8em;
54 position: absolute;
55 }
56
57 #summary {
58 margin: 0; padding: 5px 10px;
59 font-family: "Lucida Grande", Helvetica, sans-serif;
60 text-align: right;
61 top: 0px;
62 right: 0px;
63 float:right;
64 }
65
66 #summary p {
67 margin: 0 0 0 2px;
68 }
69
70 #summary #totals {
71 font-size: 1.2em;
72 }
73
74 .example_group {
75 margin: 0 10px 5px;
76 background: #fff;
77 }
78
79 dl {
80 margin: 0; padding: 0 0 5px;
81 font: normal 11px "Lucida Grande", Helvetica, sans-serif;
82 }
83
84 dt {
85 padding: 3px;
86 background: #65C400;
87 color: #fff;
88 font-weight: bold;
89 }
90
91 dd {
92 margin: 5px 0 5px 5px;
93 padding: 3px 3px 3px 18px;
94 }
95
96 dd.spec.passed {
97 border-left: 5px solid #65C400;
98 border-bottom: 1px solid #65C400;
99 background: #DBFFB4; color: #3D7700;
100 }
101
102 dd.spec.failed {
103 border-left: 5px solid #C20000;
104 border-bottom: 1px solid #C20000;
105 color: #C20000; background: #FFFBD3;
106 }
107
108 dd.spec.not_implemented {
109 border-left: 5px solid #FAF834;
110 border-bottom: 1px solid #FAF834;
111 background: #FCFB98; color: #131313;
112 }
113
114 dd.spec.pending_fixed {
115 border-left: 5px solid #0000C2;
116 border-bottom: 1px solid #0000C2;
117 color: #0000C2; background: #D3FBFF;
118 }
119
120 .backtrace {
121 color: #000;
122 font-size: 12px;
123 }
124
125 a {
126 color: #BE5C00;
127 }
128
129 /* Ruby code, style similar to vibrant ink */
130 .ruby {
131 font-size: 12px;
132 font-family: monospace;
133 color: white;
134 background-color: black;
135 padding: 0.1em 0 0.2em 0;
136 }
137
138 .ruby .keyword { color: #FF6600; }
139 .ruby .constant { color: #339999; }
140 .ruby .attribute { color: white; }
141 .ruby .global { color: white; }
142 .ruby .module { color: white; }
143 .ruby .class { color: white; }
144 .ruby .string { color: #66FF00; }
145 .ruby .ident { color: white; }
146 .ruby .method { color: #FFCC00; }
147 .ruby .number { color: white; }
148 .ruby .char { color: white; }
149 .ruby .comment { color: #9933CC; }
150 .ruby .symbol { color: white; }
151 .ruby .regex { color: #44B4CC; }
152 .ruby .punct { color: white; }
153 .ruby .escape { color: white; }
154 .ruby .interp { color: white; }
155 .ruby .expr { color: white; }
156
157 .ruby .offending { background-color: gray; }
158 .ruby .linenum {
159 width: 75px;
160 padding: 0.1em 1em 0.2em 0;
161 color: #000000;
162 background-color: #FFFBD3;
163 }
164
165 </style>
166 </head>
167 <body>
168 <div class="rspec-report">
169
170 <div id="rspec-header">
171 <div id="label">
172 <h1>RSpec Code Examples</h1>
173 </div>
174
175 <div id="summary">
176 <p id="totals">&nbsp;</p>
177 <p id="duration">&nbsp;</p>
178 </div>
179 </div>
180
181 <div class="results">
182 <div class="example_group">
183 <dl style="margin-left: 0px;">
184 <dt id="example_group_1">AuthorRepository</dt>
185 </dl>
186 </div>
187 <div class="example_group">
188 <dl style="margin-left: 15px;">
189 <dt id="example_group_2">should be created if</dt>
190 <script type="text/javascript">moveProgressBar('12.5');</script>
191 <dd class="spec passed"><span class="passed_spec_name">Author is exist in Author table</span></dd>
192 <script type="text/javascript">moveProgressBar('25.0');</script>
193 <dd class="spec passed"><span class="passed_spec_name">Repository is exist in Repository table</span></dd>
194 <script type="text/javascript">moveProgressBar('37.5');</script>
195 <dd class="spec passed"><span class="passed_spec_name">Pair of given Author and Repository is exist in GitLog table </span></dd>
196 </dl>
197 </div>
198 <div class="example_group">
199 <dl style="margin-left: 15px;">
200 <dt id="example_group_3">should not be created if</dt>
201 <script type="text/javascript">moveProgressBar('50.0');</script>
202 <dd class="spec passed"><span class="passed_spec_name">given author is not exist in Author table</span></dd>
203 <script type="text/javascript">moveProgressBar('62.5');</script>
204 <dd class="spec passed"><span class="passed_spec_name">given repository is not exist in Repository table</span></dd>
205 <script type="text/javascript">moveProgressBar('75.0');</script>
206 <dd class="spec passed"><span class="passed_spec_name">pair of given author and repository is not exist in GitLog table </span></dd>
207 </dl>
208 </div>
209 <div class="example_group">
210 <dl style="margin-left: 15px;">
211 <dt id="example_group_4">should be destroy if</dt>
212 <script type="text/javascript">moveProgressBar('87.5');</script>
213 <dd class="spec passed"><span class="passed_spec_name">the related repository get removed from Repository table </span></dd>
214 </dl>
215 </div>
216 <div class="example_group">
217 <dl style="margin-left: 15px;">
218 <dt id="example_group_5">should not be destroy</dt>
219 <script type="text/javascript">moveProgressBar('100.0');</script>
220 <dd class="spec passed"><span class="passed_spec_name">GitLog contains its entry</span></dd>
221 </dl>
222 </div>
223 <script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0.013349 seconds</strong>";</script>
224 <script type="text/javascript">document.getElementById('totals').innerHTML = "8 examples, 0 failures";</script>
225 </div>
226 </div>
227 </body>
228 </html>
Something went wrong with that request. Please try again.