mocha_rails 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Readme.md +4 -2
- data/lib/mocha_rails/version.rb +1 -1
- data/vendor/assets/javascripts/chai.js +3828 -1438
- data/vendor/assets/javascripts/mocha.js +1988 -441
- data/vendor/assets/stylesheets/mocha.css +149 -26
- metadata +6 -6
@@ -1,10 +1,24 @@
|
|
1
|
+
@charset "utf-8";
|
1
2
|
|
2
3
|
body {
|
4
|
+
margin:0;
|
5
|
+
}
|
6
|
+
|
7
|
+
#mocha {
|
3
8
|
font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
4
|
-
|
9
|
+
margin: 60px 50px;
|
10
|
+
}
|
11
|
+
|
12
|
+
#mocha ul, #mocha li {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
#mocha ul {
|
18
|
+
list-style: none;
|
5
19
|
}
|
6
20
|
|
7
|
-
#mocha h1, h2 {
|
21
|
+
#mocha h1, #mocha h2 {
|
8
22
|
margin: 0;
|
9
23
|
}
|
10
24
|
|
@@ -14,11 +28,24 @@ body {
|
|
14
28
|
font-weight: 200;
|
15
29
|
}
|
16
30
|
|
31
|
+
#mocha h1 a {
|
32
|
+
text-decoration: none;
|
33
|
+
color: inherit;
|
34
|
+
}
|
35
|
+
|
36
|
+
#mocha h1 a:hover {
|
37
|
+
text-decoration: underline;
|
38
|
+
}
|
39
|
+
|
17
40
|
#mocha .suite .suite h1 {
|
18
41
|
margin-top: 0;
|
19
42
|
font-size: .8em;
|
20
43
|
}
|
21
44
|
|
45
|
+
#mocha .hidden {
|
46
|
+
display: none;
|
47
|
+
}
|
48
|
+
|
22
49
|
#mocha h2 {
|
23
50
|
font-size: 12px;
|
24
51
|
font-weight: normal;
|
@@ -31,21 +58,20 @@ body {
|
|
31
58
|
|
32
59
|
#mocha .test {
|
33
60
|
margin-left: 15px;
|
34
|
-
|
35
|
-
|
36
|
-
#mocha .test:hover h2::after {
|
37
|
-
position: relative;
|
38
|
-
top: 0;
|
39
|
-
right: -10px;
|
40
|
-
content: '(view source)';
|
41
|
-
font-size: 12px;
|
42
|
-
font-family: arial;
|
43
|
-
color: #888;
|
61
|
+
overflow: hidden;
|
44
62
|
}
|
45
63
|
|
46
64
|
#mocha .test.pending:hover h2::after {
|
47
65
|
content: '(pending)';
|
48
|
-
font-family: arial;
|
66
|
+
font-family: arial, sans-serif;
|
67
|
+
}
|
68
|
+
|
69
|
+
#mocha .test.pass.medium .duration {
|
70
|
+
background: #C09853;
|
71
|
+
}
|
72
|
+
|
73
|
+
#mocha .test.pass.slow .duration {
|
74
|
+
background: #B94A48;
|
49
75
|
}
|
50
76
|
|
51
77
|
#mocha .test.pass::before {
|
@@ -54,7 +80,26 @@ body {
|
|
54
80
|
display: block;
|
55
81
|
float: left;
|
56
82
|
margin-right: 5px;
|
57
|
-
color: #
|
83
|
+
color: #00d6b2;
|
84
|
+
}
|
85
|
+
|
86
|
+
#mocha .test.pass .duration {
|
87
|
+
font-size: 9px;
|
88
|
+
margin-left: 5px;
|
89
|
+
padding: 2px 5px;
|
90
|
+
color: white;
|
91
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
|
92
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
|
93
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
|
94
|
+
-webkit-border-radius: 5px;
|
95
|
+
-moz-border-radius: 5px;
|
96
|
+
-ms-border-radius: 5px;
|
97
|
+
-o-border-radius: 5px;
|
98
|
+
border-radius: 5px;
|
99
|
+
}
|
100
|
+
|
101
|
+
#mocha .test.pass.fast .duration {
|
102
|
+
display: none;
|
58
103
|
}
|
59
104
|
|
60
105
|
#mocha .test.pending {
|
@@ -85,10 +130,14 @@ body {
|
|
85
130
|
|
86
131
|
#mocha .test pre.error {
|
87
132
|
color: #c00;
|
133
|
+
max-height: 300px;
|
134
|
+
overflow: auto;
|
88
135
|
}
|
89
136
|
|
90
137
|
#mocha .test pre {
|
91
|
-
display:
|
138
|
+
display: block;
|
139
|
+
float: left;
|
140
|
+
clear: left;
|
92
141
|
font: 12px/1.5 monaco, monospace;
|
93
142
|
margin: 5px;
|
94
143
|
padding: 15px;
|
@@ -96,42 +145,116 @@ body {
|
|
96
145
|
border-bottom-color: #ddd;
|
97
146
|
-webkit-border-radius: 3px;
|
98
147
|
-webkit-box-shadow: 0 1px 3px #eee;
|
148
|
+
-moz-border-radius: 3px;
|
149
|
+
-moz-box-shadow: 0 1px 3px #eee;
|
150
|
+
border-radius: 3px;
|
151
|
+
}
|
152
|
+
|
153
|
+
#mocha .test h2 {
|
154
|
+
position: relative;
|
155
|
+
}
|
156
|
+
|
157
|
+
#mocha .test a.replay {
|
158
|
+
position: absolute;
|
159
|
+
top: 3px;
|
160
|
+
right: 0;
|
161
|
+
text-decoration: none;
|
162
|
+
vertical-align: middle;
|
163
|
+
display: block;
|
164
|
+
width: 15px;
|
165
|
+
height: 15px;
|
166
|
+
line-height: 15px;
|
167
|
+
text-align: center;
|
168
|
+
background: #eee;
|
169
|
+
font-size: 15px;
|
170
|
+
-moz-border-radius: 15px;
|
171
|
+
border-radius: 15px;
|
172
|
+
-webkit-transition: opacity 200ms;
|
173
|
+
-moz-transition: opacity 200ms;
|
174
|
+
transition: opacity 200ms;
|
175
|
+
opacity: 0.3;
|
176
|
+
color: #888;
|
177
|
+
}
|
178
|
+
|
179
|
+
#mocha .test:hover a.replay {
|
180
|
+
opacity: 1;
|
181
|
+
}
|
182
|
+
|
183
|
+
#mocha-report.pass .test.fail {
|
184
|
+
display: none;
|
185
|
+
}
|
186
|
+
|
187
|
+
#mocha-report.fail .test.pass {
|
188
|
+
display: none;
|
99
189
|
}
|
100
190
|
|
101
|
-
#
|
191
|
+
#mocha-report.pending .test.pass,
|
192
|
+
#mocha-report.pending .test.fail {
|
193
|
+
display: none;
|
194
|
+
}
|
195
|
+
#mocha-report.pending .test.pass.pending {
|
196
|
+
display: block;
|
197
|
+
}
|
198
|
+
|
199
|
+
#mocha-error {
|
102
200
|
color: #c00;
|
103
|
-
font-size: 1.
|
201
|
+
font-size: 1.5em;
|
104
202
|
font-weight: 100;
|
105
203
|
letter-spacing: 1px;
|
106
204
|
}
|
107
205
|
|
108
|
-
#stats {
|
206
|
+
#mocha-stats {
|
109
207
|
position: fixed;
|
110
208
|
top: 15px;
|
111
209
|
right: 10px;
|
112
210
|
font-size: 12px;
|
113
211
|
margin: 0;
|
114
212
|
color: #888;
|
213
|
+
z-index: 1;
|
115
214
|
}
|
116
215
|
|
117
|
-
#stats .progress {
|
216
|
+
#mocha-stats .progress {
|
118
217
|
float: right;
|
119
218
|
padding-top: 0;
|
120
219
|
}
|
121
220
|
|
122
|
-
#stats em {
|
221
|
+
#mocha-stats em {
|
123
222
|
color: black;
|
124
223
|
}
|
125
224
|
|
126
|
-
#stats
|
225
|
+
#mocha-stats a {
|
226
|
+
text-decoration: none;
|
227
|
+
color: inherit;
|
228
|
+
}
|
229
|
+
|
230
|
+
#mocha-stats a:hover {
|
231
|
+
border-bottom: 1px solid #eee;
|
232
|
+
}
|
233
|
+
|
234
|
+
#mocha-stats li {
|
127
235
|
display: inline-block;
|
128
236
|
margin: 0 5px;
|
129
237
|
list-style: none;
|
130
238
|
padding-top: 11px;
|
131
239
|
}
|
132
240
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
241
|
+
#mocha-stats canvas {
|
242
|
+
width: 40px;
|
243
|
+
height: 40px;
|
244
|
+
}
|
245
|
+
|
246
|
+
#mocha code .comment { color: #ddd }
|
247
|
+
#mocha code .init { color: #2F6FAD }
|
248
|
+
#mocha code .string { color: #5890AD }
|
249
|
+
#mocha code .keyword { color: #8A6343 }
|
250
|
+
#mocha code .number { color: #2F6FAD }
|
251
|
+
|
252
|
+
@media screen and (max-device-width: 480px) {
|
253
|
+
#mocha {
|
254
|
+
margin: 60px 0px;
|
255
|
+
}
|
256
|
+
|
257
|
+
#mocha #stats {
|
258
|
+
position: absolute;
|
259
|
+
}
|
260
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mocha_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-09-20 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70224280261680 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70224280261680
|
25
25
|
description: MochaRails is a mountable Rails engine that serves a browser-based Mocha
|
26
26
|
test suite, along with your production JavaScript files, via the Asset Pipeline.
|
27
27
|
email:
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
segments:
|
98
98
|
- 0
|
99
|
-
hash:
|
99
|
+
hash: 1891593198561790138
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
none: false
|
102
102
|
requirements:
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
segments:
|
107
107
|
- 0
|
108
|
-
hash:
|
108
|
+
hash: 1891593198561790138
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
111
|
rubygems_version: 1.8.13
|