rails_sandbox_mocha_chai 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +48 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/chai-globals.js.coffee +3 -0
- data/app/views/mocha_chai/runner.html.erb +25 -0
- data/lib/rails_sandbox_mocha_chai.rb +18 -0
- data/lib/rails_sandbox_mocha_chai/version.rb +3 -0
- data/rails_sandbox_mocha_chai.gemspec +20 -0
- data/vendor/assets/javascripts/chai.js +3260 -0
- data/vendor/assets/javascripts/mocha.js +4210 -0
- data/vendor/assets/stylesheets/mocha.css +182 -0
- metadata +96 -0
@@ -0,0 +1,182 @@
|
|
1
|
+
|
2
|
+
body {
|
3
|
+
font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
4
|
+
padding: 60px 50px;
|
5
|
+
}
|
6
|
+
|
7
|
+
#mocha ul, #mocha li {
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
#mocha ul {
|
13
|
+
list-style: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
#mocha h1, #mocha h2 {
|
17
|
+
margin: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
#mocha h1 {
|
21
|
+
margin-top: 15px;
|
22
|
+
font-size: 1em;
|
23
|
+
font-weight: 200;
|
24
|
+
}
|
25
|
+
|
26
|
+
#mocha h1 a {
|
27
|
+
text-decoration: none;
|
28
|
+
color: inherit;
|
29
|
+
}
|
30
|
+
|
31
|
+
#mocha h1 a:hover {
|
32
|
+
text-decoration: underline;
|
33
|
+
}
|
34
|
+
|
35
|
+
#mocha .suite .suite h1 {
|
36
|
+
margin-top: 0;
|
37
|
+
font-size: .8em;
|
38
|
+
}
|
39
|
+
|
40
|
+
#mocha h2 {
|
41
|
+
font-size: 12px;
|
42
|
+
font-weight: normal;
|
43
|
+
cursor: pointer;
|
44
|
+
}
|
45
|
+
|
46
|
+
#mocha .suite {
|
47
|
+
margin-left: 15px;
|
48
|
+
}
|
49
|
+
|
50
|
+
#mocha .test {
|
51
|
+
margin-left: 15px;
|
52
|
+
}
|
53
|
+
|
54
|
+
#mocha .test:hover h2::after {
|
55
|
+
position: relative;
|
56
|
+
top: 0;
|
57
|
+
right: -10px;
|
58
|
+
content: '(view source)';
|
59
|
+
font-size: 12px;
|
60
|
+
font-family: arial;
|
61
|
+
color: #888;
|
62
|
+
}
|
63
|
+
|
64
|
+
#mocha .test.pending:hover h2::after {
|
65
|
+
content: '(pending)';
|
66
|
+
font-family: arial;
|
67
|
+
}
|
68
|
+
|
69
|
+
#mocha .test.pass.medium .duration {
|
70
|
+
background: #C09853;
|
71
|
+
}
|
72
|
+
|
73
|
+
#mocha .test.pass.slow .duration {
|
74
|
+
background: #B94A48;
|
75
|
+
}
|
76
|
+
|
77
|
+
#mocha .test.pass::before {
|
78
|
+
content: '✓';
|
79
|
+
font-size: 12px;
|
80
|
+
display: block;
|
81
|
+
float: left;
|
82
|
+
margin-right: 5px;
|
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;
|
103
|
+
}
|
104
|
+
|
105
|
+
#mocha .test.pending {
|
106
|
+
color: #0b97c4;
|
107
|
+
}
|
108
|
+
|
109
|
+
#mocha .test.pending::before {
|
110
|
+
content: '◦';
|
111
|
+
color: #0b97c4;
|
112
|
+
}
|
113
|
+
|
114
|
+
#mocha .test.fail {
|
115
|
+
color: #c00;
|
116
|
+
}
|
117
|
+
|
118
|
+
#mocha .test.fail pre {
|
119
|
+
color: black;
|
120
|
+
}
|
121
|
+
|
122
|
+
#mocha .test.fail::before {
|
123
|
+
content: '✖';
|
124
|
+
font-size: 12px;
|
125
|
+
display: block;
|
126
|
+
float: left;
|
127
|
+
margin-right: 5px;
|
128
|
+
color: #c00;
|
129
|
+
}
|
130
|
+
|
131
|
+
#mocha .test pre.error {
|
132
|
+
color: #c00;
|
133
|
+
}
|
134
|
+
|
135
|
+
#mocha .test pre {
|
136
|
+
display: inline-block;
|
137
|
+
font: 12px/1.5 monaco, monospace;
|
138
|
+
margin: 5px;
|
139
|
+
padding: 15px;
|
140
|
+
border: 1px solid #eee;
|
141
|
+
border-bottom-color: #ddd;
|
142
|
+
-webkit-border-radius: 3px;
|
143
|
+
-webkit-box-shadow: 0 1px 3px #eee;
|
144
|
+
}
|
145
|
+
|
146
|
+
#error {
|
147
|
+
color: #c00;
|
148
|
+
font-size: 1.5 em;
|
149
|
+
font-weight: 100;
|
150
|
+
letter-spacing: 1px;
|
151
|
+
}
|
152
|
+
|
153
|
+
#stats {
|
154
|
+
position: fixed;
|
155
|
+
top: 15px;
|
156
|
+
right: 10px;
|
157
|
+
font-size: 12px;
|
158
|
+
margin: 0;
|
159
|
+
color: #888;
|
160
|
+
}
|
161
|
+
|
162
|
+
#stats .progress {
|
163
|
+
float: right;
|
164
|
+
padding-top: 0;
|
165
|
+
}
|
166
|
+
|
167
|
+
#stats em {
|
168
|
+
color: black;
|
169
|
+
}
|
170
|
+
|
171
|
+
#stats li {
|
172
|
+
display: inline-block;
|
173
|
+
margin: 0 5px;
|
174
|
+
list-style: none;
|
175
|
+
padding-top: 11px;
|
176
|
+
}
|
177
|
+
|
178
|
+
code .comment { color: #ddd }
|
179
|
+
code .init { color: #2F6FAD }
|
180
|
+
code .string { color: #5890AD }
|
181
|
+
code .keyword { color: #8A6343 }
|
182
|
+
code .number { color: #2F6FAD }
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_sandbox_mocha_chai
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Rodrigo Rosenfeld Rosas
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails-sandbox-assets
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.0.4
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.0.4
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jquery-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Add Mocha/Chai spec runner to Rails
|
47
|
+
email:
|
48
|
+
- rr.rosas@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- Gemfile
|
55
|
+
- LICENSE
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- app/assets/javascripts/chai-globals.js.coffee
|
59
|
+
- app/views/mocha_chai/runner.html.erb
|
60
|
+
- lib/rails_sandbox_mocha_chai.rb
|
61
|
+
- lib/rails_sandbox_mocha_chai/version.rb
|
62
|
+
- rails_sandbox_mocha_chai.gemspec
|
63
|
+
- vendor/assets/javascripts/chai.js
|
64
|
+
- vendor/assets/javascripts/mocha.js
|
65
|
+
- vendor/assets/stylesheets/mocha.css
|
66
|
+
homepage: http://github.com/rosenfeld/rails_sandbox_mocha_chai
|
67
|
+
licenses: []
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
hash: -490389037202781247
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
hash: -490389037202781247
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 1.8.21
|
93
|
+
signing_key:
|
94
|
+
specification_version: 3
|
95
|
+
summary: Use rails-sandbox-assets to serve the assets
|
96
|
+
test_files: []
|