konacha 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +7 -0
- data/LICENSE +90 -0
- data/README.md +199 -0
- data/Rakefile +8 -0
- data/app/controllers/konacha/specs_controller.rb +22 -0
- data/app/models/konacha/spec.rb +25 -0
- data/app/views/konacha/specs/index.html.erb +1 -0
- data/app/views/konacha/specs/show.html.erb +1 -0
- data/app/views/layouts/konacha/specs.html.erb +31 -0
- data/config/routes.rb +4 -0
- data/konacha.gemspec +30 -0
- data/lib/konacha.rb +41 -0
- data/lib/konacha/engine.rb +31 -0
- data/lib/konacha/runner.rb +151 -0
- data/lib/konacha/server.rb +7 -0
- data/lib/tasks/konacha.rake +11 -0
- data/spec/controllers/specs_controller_spec.rb +46 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/array_sum.js.coffee +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +17 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/test.rb +29 -0
- data/spec/dummy/config/initializers/konacha.rb +3 -0
- data/spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee +8 -0
- data/spec/dummy/spec/javascripts/array_sum_js_spec.js +11 -0
- data/spec/dummy/spec/javascripts/assert_spec.js.coffee +9 -0
- data/spec/dummy/spec/javascripts/failing_spec.js +5 -0
- data/spec/dummy/spec/javascripts/spec_helper.js +3 -0
- data/spec/dummy/spec/javascripts/spec_helper_spec.js +7 -0
- data/spec/dummy/spec/javascripts/subdirectory/subdirectory_spec.js +5 -0
- data/spec/dummy/spec/javascripts/templates/hello.jst.ejs +1 -0
- data/spec/dummy/spec/javascripts/templating_spec.js +8 -0
- data/spec/dummy/spec/javascripts/transactions_spec.js.coffee +7 -0
- data/spec/konacha_spec.rb +40 -0
- data/spec/models/spec_spec.rb +45 -0
- data/spec/runner_spec.rb +36 -0
- data/spec/server_spec.rb +41 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/views/specs/index.html.erb_spec.rb +12 -0
- data/spec/views/specs/show.html.erb_spec.rb +10 -0
- data/spec/views/specs/specs.html.erb_spec.rb +15 -0
- data/vendor/assets/images/konacha.jpg +0 -0
- data/vendor/assets/javascripts/chai.js +2007 -0
- data/vendor/assets/javascripts/konacha/runner.js +70 -0
- data/vendor/assets/javascripts/konacha/server.js +0 -0
- data/vendor/assets/javascripts/mocha.js +3290 -0
- data/vendor/assets/stylesheets/mocha.css +133 -0
- metadata +203 -0
@@ -0,0 +1,133 @@
|
|
1
|
+
|
2
|
+
body {
|
3
|
+
font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
4
|
+
padding: 60px 50px;
|
5
|
+
}
|
6
|
+
|
7
|
+
#mocha h1, h2 {
|
8
|
+
margin: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
#mocha h1 {
|
12
|
+
font-size: 1em;
|
13
|
+
font-weight: 200;
|
14
|
+
}
|
15
|
+
|
16
|
+
#mocha .suite .suite h1 {
|
17
|
+
font-size: .8em;
|
18
|
+
}
|
19
|
+
|
20
|
+
#mocha h2 {
|
21
|
+
font-size: 12px;
|
22
|
+
font-weight: normal;
|
23
|
+
cursor: pointer;
|
24
|
+
}
|
25
|
+
|
26
|
+
#mocha .suite {
|
27
|
+
margin-left: 15px;
|
28
|
+
}
|
29
|
+
|
30
|
+
#mocha .test {
|
31
|
+
margin-left: 15px;
|
32
|
+
}
|
33
|
+
|
34
|
+
#mocha .test:hover h2::after {
|
35
|
+
position: relative;
|
36
|
+
top: 0;
|
37
|
+
right: -10px;
|
38
|
+
content: '(view source)';
|
39
|
+
font-size: 12px;
|
40
|
+
color: #888;
|
41
|
+
}
|
42
|
+
|
43
|
+
#mocha .test.pending:hover h2::after {
|
44
|
+
content: '(pending)';
|
45
|
+
}
|
46
|
+
|
47
|
+
#mocha .test.pass::before {
|
48
|
+
content: '✓';
|
49
|
+
font-size: 12px;
|
50
|
+
display: block;
|
51
|
+
float: left;
|
52
|
+
margin-right: 5px;
|
53
|
+
color: #00c41c;
|
54
|
+
}
|
55
|
+
|
56
|
+
#mocha .test.pending {
|
57
|
+
color: #0b97c4;
|
58
|
+
}
|
59
|
+
|
60
|
+
#mocha .test.pending::before {
|
61
|
+
content: '◦';
|
62
|
+
color: #0b97c4;
|
63
|
+
}
|
64
|
+
|
65
|
+
#mocha .test.fail {
|
66
|
+
color: #c00;
|
67
|
+
}
|
68
|
+
|
69
|
+
#mocha .test.fail pre {
|
70
|
+
color: black;
|
71
|
+
}
|
72
|
+
|
73
|
+
#mocha .test.fail::before {
|
74
|
+
content: '✖';
|
75
|
+
font-size: 12px;
|
76
|
+
display: block;
|
77
|
+
float: left;
|
78
|
+
margin-right: 5px;
|
79
|
+
color: #c00;
|
80
|
+
}
|
81
|
+
|
82
|
+
#mocha .test pre.error {
|
83
|
+
color: #c00;
|
84
|
+
}
|
85
|
+
|
86
|
+
#mocha .test pre {
|
87
|
+
display: inline-block;
|
88
|
+
font: 12px/1.5 monaco, monospace;
|
89
|
+
margin: 5px;
|
90
|
+
padding: 15px;
|
91
|
+
border: 1px solid #eee;
|
92
|
+
border-bottom-color: #ddd;
|
93
|
+
-webkit-border-radius: 3px;
|
94
|
+
-webkit-box-shadow: 0 1px 3px #eee;
|
95
|
+
}
|
96
|
+
|
97
|
+
#error {
|
98
|
+
color: #c00;
|
99
|
+
font-size: 1.5 em;
|
100
|
+
font-weight: 100;
|
101
|
+
letter-spacing: 1px;
|
102
|
+
}
|
103
|
+
|
104
|
+
#stats {
|
105
|
+
position: fixed;
|
106
|
+
top: 15px;
|
107
|
+
right: 10px;
|
108
|
+
font-size: 12px;
|
109
|
+
margin: 0;
|
110
|
+
color: #888;
|
111
|
+
}
|
112
|
+
|
113
|
+
#stats .progress {
|
114
|
+
float: right;
|
115
|
+
padding-top: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
#stats em {
|
119
|
+
color: black;
|
120
|
+
}
|
121
|
+
|
122
|
+
#stats li {
|
123
|
+
display: inline-block;
|
124
|
+
margin: 0 5px;
|
125
|
+
list-style: none;
|
126
|
+
padding-top: 11px;
|
127
|
+
}
|
128
|
+
|
129
|
+
code .comment { color: #ddd }
|
130
|
+
code .init { color: #2F6FAD }
|
131
|
+
code .string { color: #5890AD }
|
132
|
+
code .keyword { color: #8A6343 }
|
133
|
+
code .number { color: #2F6FAD }
|
metadata
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: konacha
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- John Firebaugh
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-02-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jquery-rails
|
16
|
+
requirement: &70180461890780 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70180461890780
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rails
|
27
|
+
requirement: &70180461890100 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.1'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70180461890100
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: capybara
|
38
|
+
requirement: &70180461889480 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70180461889480
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec-rails
|
49
|
+
requirement: &70180461888880 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70180461888880
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: capybara-firebug
|
60
|
+
requirement: &70180461887920 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '1.1'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70180461887920
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coffee-script
|
71
|
+
requirement: &70180461879040 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70180461879040
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: ejs
|
82
|
+
requirement: &70180461878500 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70180461878500
|
91
|
+
description: Unit test your Rails JavaScript with the mocha test framework and chai
|
92
|
+
assertion library
|
93
|
+
email:
|
94
|
+
- john.firebaugh@gmail.com
|
95
|
+
executables: []
|
96
|
+
extensions: []
|
97
|
+
extra_rdoc_files: []
|
98
|
+
files:
|
99
|
+
- .gitignore
|
100
|
+
- Gemfile
|
101
|
+
- LICENSE
|
102
|
+
- README.md
|
103
|
+
- Rakefile
|
104
|
+
- app/controllers/konacha/specs_controller.rb
|
105
|
+
- app/models/konacha/spec.rb
|
106
|
+
- app/views/konacha/specs/index.html.erb
|
107
|
+
- app/views/konacha/specs/show.html.erb
|
108
|
+
- app/views/layouts/konacha/specs.html.erb
|
109
|
+
- config/routes.rb
|
110
|
+
- konacha.gemspec
|
111
|
+
- lib/konacha.rb
|
112
|
+
- lib/konacha/engine.rb
|
113
|
+
- lib/konacha/runner.rb
|
114
|
+
- lib/konacha/server.rb
|
115
|
+
- lib/tasks/konacha.rake
|
116
|
+
- spec/controllers/specs_controller_spec.rb
|
117
|
+
- spec/dummy/app/assets/javascripts/application.js
|
118
|
+
- spec/dummy/app/assets/javascripts/array_sum.js.coffee
|
119
|
+
- spec/dummy/config.ru
|
120
|
+
- spec/dummy/config/application.rb
|
121
|
+
- spec/dummy/config/boot.rb
|
122
|
+
- spec/dummy/config/environment.rb
|
123
|
+
- spec/dummy/config/environments/test.rb
|
124
|
+
- spec/dummy/config/initializers/konacha.rb
|
125
|
+
- spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
|
126
|
+
- spec/dummy/spec/javascripts/array_sum_js_spec.js
|
127
|
+
- spec/dummy/spec/javascripts/assert_spec.js.coffee
|
128
|
+
- spec/dummy/spec/javascripts/failing_spec.js
|
129
|
+
- spec/dummy/spec/javascripts/spec_helper.js
|
130
|
+
- spec/dummy/spec/javascripts/spec_helper_spec.js
|
131
|
+
- spec/dummy/spec/javascripts/subdirectory/subdirectory_spec.js
|
132
|
+
- spec/dummy/spec/javascripts/templates/hello.jst.ejs
|
133
|
+
- spec/dummy/spec/javascripts/templating_spec.js
|
134
|
+
- spec/dummy/spec/javascripts/transactions_spec.js.coffee
|
135
|
+
- spec/konacha_spec.rb
|
136
|
+
- spec/models/spec_spec.rb
|
137
|
+
- spec/runner_spec.rb
|
138
|
+
- spec/server_spec.rb
|
139
|
+
- spec/spec_helper.rb
|
140
|
+
- spec/views/specs/index.html.erb_spec.rb
|
141
|
+
- spec/views/specs/show.html.erb_spec.rb
|
142
|
+
- spec/views/specs/specs.html.erb_spec.rb
|
143
|
+
- vendor/assets/images/konacha.jpg
|
144
|
+
- vendor/assets/javascripts/chai.js
|
145
|
+
- vendor/assets/javascripts/konacha/runner.js
|
146
|
+
- vendor/assets/javascripts/konacha/server.js
|
147
|
+
- vendor/assets/javascripts/mocha.js
|
148
|
+
- vendor/assets/stylesheets/mocha.css
|
149
|
+
homepage: http://github.com/jfirebaugh/konacha
|
150
|
+
licenses: []
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 1.8.16
|
170
|
+
signing_key:
|
171
|
+
specification_version: 3
|
172
|
+
summary: Konacha is a Rails engine that allows you to test your JavaScript with the
|
173
|
+
mocha test framework and chai assertion library. It is similar to Jasmine and Evergreen,
|
174
|
+
but does not attempt to be framework agnostic. By sticking with Rails, Konacha can
|
175
|
+
take full advantage of features such as the asset pipeline and engines.
|
176
|
+
test_files:
|
177
|
+
- spec/controllers/specs_controller_spec.rb
|
178
|
+
- spec/dummy/app/assets/javascripts/application.js
|
179
|
+
- spec/dummy/app/assets/javascripts/array_sum.js.coffee
|
180
|
+
- spec/dummy/config.ru
|
181
|
+
- spec/dummy/config/application.rb
|
182
|
+
- spec/dummy/config/boot.rb
|
183
|
+
- spec/dummy/config/environment.rb
|
184
|
+
- spec/dummy/config/environments/test.rb
|
185
|
+
- spec/dummy/config/initializers/konacha.rb
|
186
|
+
- spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
|
187
|
+
- spec/dummy/spec/javascripts/array_sum_js_spec.js
|
188
|
+
- spec/dummy/spec/javascripts/assert_spec.js.coffee
|
189
|
+
- spec/dummy/spec/javascripts/failing_spec.js
|
190
|
+
- spec/dummy/spec/javascripts/spec_helper.js
|
191
|
+
- spec/dummy/spec/javascripts/spec_helper_spec.js
|
192
|
+
- spec/dummy/spec/javascripts/subdirectory/subdirectory_spec.js
|
193
|
+
- spec/dummy/spec/javascripts/templates/hello.jst.ejs
|
194
|
+
- spec/dummy/spec/javascripts/templating_spec.js
|
195
|
+
- spec/dummy/spec/javascripts/transactions_spec.js.coffee
|
196
|
+
- spec/konacha_spec.rb
|
197
|
+
- spec/models/spec_spec.rb
|
198
|
+
- spec/runner_spec.rb
|
199
|
+
- spec/server_spec.rb
|
200
|
+
- spec/spec_helper.rb
|
201
|
+
- spec/views/specs/index.html.erb_spec.rb
|
202
|
+
- spec/views/specs/show.html.erb_spec.rb
|
203
|
+
- spec/views/specs/specs.html.erb_spec.rb
|