jasmine-stories 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +110 -0
- data/MIT-LICENSE +20 -0
- data/README.md +98 -0
- data/Rakefile +25 -0
- data/app/assets/images/.gitkeep +0 -0
- data/app/assets/javascripts/jasmine-stories.js.coffee +37 -0
- data/app/assets/stylesheets/application.css +7 -0
- data/app/controllers/jasmine_stories/application_controller.rb +4 -0
- data/app/controllers/jasmine_stories/spec_controller.rb +10 -0
- data/app/views/jasmine_stories/spec/index.html.haml +10 -0
- data/config/initializers/jasmine-stories.rb +1 -0
- data/config/routes.rb +7 -0
- data/jasmine-stories.gemspec +12 -0
- data/lib/jasmine-stories.rb +5 -0
- data/lib/jasmine-stories/engine.rb +5 -0
- data/vendor/assets/images/jasmine_favicon.png +0 -0
- data/vendor/assets/javascripts/jasmine-grammar.js +247 -0
- data/vendor/assets/javascripts/jasmine-html.js +190 -0
- data/vendor/assets/javascripts/jasmine-jquery.js +306 -0
- data/vendor/assets/javascripts/jasmine-reporting.js +191 -0
- data/vendor/assets/javascripts/jasmine.js +2476 -0
- data/vendor/assets/javascripts/namespace.js +499 -0
- data/vendor/assets/stylesheets/jasmine-be-calm.css +106 -0
- data/vendor/assets/stylesheets/jasmine.css +166 -0
- metadata +87 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
/**
|
2
|
+
* Calm theme for the jasmine-bloom StyledHtmlReporter output.
|
3
|
+
*
|
4
|
+
* This theme does away with the default boxey look. The resulting report
|
5
|
+
* is a lot less "busy" thus making it easy to focus on your specs.
|
6
|
+
*/
|
7
|
+
|
8
|
+
/* jasmine-reporter style overrides for */
|
9
|
+
.jasmine_reporter a { text-decoration:none; }
|
10
|
+
|
11
|
+
.jasmine_reporter > .suite {
|
12
|
+
padding-bottom: 0.3em;
|
13
|
+
margin-bottom: 0.3em;
|
14
|
+
border-bottom: solid 2px #eee; }
|
15
|
+
|
16
|
+
.banner, .runner {
|
17
|
+
-webkit-border-radius: 7px;
|
18
|
+
-moz-border-radius: 7px;
|
19
|
+
border-radius: 7px; }
|
20
|
+
|
21
|
+
.runner {
|
22
|
+
-webkit-box-shadow: 2px 2px 3px #888;
|
23
|
+
-moz-box-shadow: 2px 2px 3px #888;
|
24
|
+
box-shadow: 2px 2px 5px #888; }
|
25
|
+
|
26
|
+
.suite {
|
27
|
+
border: none;
|
28
|
+
padding-left: 0.5em; }
|
29
|
+
.suite.failed,
|
30
|
+
.suite.passed,
|
31
|
+
.suite.skipped {
|
32
|
+
background: transparent; }
|
33
|
+
.suite.passed > a {
|
34
|
+
color: green; }
|
35
|
+
.suite.failed > a {
|
36
|
+
color: #c11b17; }
|
37
|
+
.suite.skipped > a {
|
38
|
+
color: #aaa; }
|
39
|
+
.suite > .description {
|
40
|
+
font-weight: bold; }
|
41
|
+
.suite.step > .description {
|
42
|
+
font-weight: normal; }
|
43
|
+
|
44
|
+
.spec {
|
45
|
+
margin: 0px;
|
46
|
+
border: none;
|
47
|
+
padding-left: 0.5em;
|
48
|
+
margin-left: 0.5em;
|
49
|
+
margin-top: 0.2em; }
|
50
|
+
.spec.failed,
|
51
|
+
.spec.passed,
|
52
|
+
.spec.skipped {
|
53
|
+
background: transparent;
|
54
|
+
border: none;
|
55
|
+
padding-bottom: 0.2em; }
|
56
|
+
.spec.failed a {
|
57
|
+
color: #c11b17; }
|
58
|
+
.spec.passed a {
|
59
|
+
color: green; }
|
60
|
+
.spec.skipped a {
|
61
|
+
color: #ccc; }
|
62
|
+
.spec:hover {
|
63
|
+
background-color: #eee;
|
64
|
+
-webkit-border-radius: 7px;
|
65
|
+
-moz-border-radius: 7px;
|
66
|
+
border-radius: 7px; }
|
67
|
+
.spec .description {
|
68
|
+
padding-left: 0.5em; }
|
69
|
+
|
70
|
+
.messages {
|
71
|
+
border: none;
|
72
|
+
margin-left: 1em;
|
73
|
+
padding-bottom: 0.5em; }
|
74
|
+
|
75
|
+
.jasmine_reporter .summary ul {
|
76
|
+
font-size: 0.9em;
|
77
|
+
color: #333;
|
78
|
+
padding-left: 0.2em;
|
79
|
+
margin: 0 0.5em; }
|
80
|
+
|
81
|
+
.jasmine_reporter .summary li {
|
82
|
+
list-style: none; }
|
83
|
+
|
84
|
+
.jasmine_reporter .details ul {
|
85
|
+
font-size: 0.8em;
|
86
|
+
color: #777;
|
87
|
+
padding-left: 0.2em;
|
88
|
+
margin: 0 0.8em; }
|
89
|
+
|
90
|
+
.jasmine_reporter .details li {
|
91
|
+
list-style: none; }
|
92
|
+
|
93
|
+
|
94
|
+
/* header style (if header is used) */
|
95
|
+
.header {
|
96
|
+
margin: 0 5px; }
|
97
|
+
.header h1 {
|
98
|
+
font-size: 1.3em; }
|
99
|
+
.header ul.menu {
|
100
|
+
margin: 0 0 0.5em 0;
|
101
|
+
padding: 0.3em;
|
102
|
+
background-color: #eee; }
|
103
|
+
.header ul.menu li {
|
104
|
+
display: inline;
|
105
|
+
list-style-type: none;
|
106
|
+
margin-right: 1em; }
|
@@ -0,0 +1,166 @@
|
|
1
|
+
body {
|
2
|
+
font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif;
|
3
|
+
}
|
4
|
+
|
5
|
+
|
6
|
+
.jasmine_reporter a:visited, .jasmine_reporter a {
|
7
|
+
color: #303;
|
8
|
+
}
|
9
|
+
|
10
|
+
.jasmine_reporter a:hover, .jasmine_reporter a:active {
|
11
|
+
color: blue;
|
12
|
+
}
|
13
|
+
|
14
|
+
.run_spec {
|
15
|
+
float:right;
|
16
|
+
padding-right: 5px;
|
17
|
+
font-size: .8em;
|
18
|
+
text-decoration: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
.jasmine_reporter {
|
22
|
+
margin: 0 5px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.banner {
|
26
|
+
color: #303;
|
27
|
+
background-color: #fef;
|
28
|
+
padding: 5px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.logo {
|
32
|
+
float: left;
|
33
|
+
font-size: 1.1em;
|
34
|
+
padding-left: 5px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.logo .version {
|
38
|
+
font-size: .6em;
|
39
|
+
padding-left: 1em;
|
40
|
+
}
|
41
|
+
|
42
|
+
.runner.running {
|
43
|
+
background-color: yellow;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
.options {
|
48
|
+
text-align: right;
|
49
|
+
font-size: .8em;
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
.suite {
|
56
|
+
border: 1px outset gray;
|
57
|
+
margin: 5px 0;
|
58
|
+
padding-left: 1em;
|
59
|
+
}
|
60
|
+
|
61
|
+
.suite .suite {
|
62
|
+
margin: 5px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.suite.passed {
|
66
|
+
background-color: #dfd;
|
67
|
+
}
|
68
|
+
|
69
|
+
.suite.failed {
|
70
|
+
background-color: #fdd;
|
71
|
+
}
|
72
|
+
|
73
|
+
.spec {
|
74
|
+
margin: 5px;
|
75
|
+
padding-left: 1em;
|
76
|
+
clear: both;
|
77
|
+
}
|
78
|
+
|
79
|
+
.spec.failed, .spec.passed, .spec.skipped {
|
80
|
+
padding-bottom: 5px;
|
81
|
+
border: 1px solid gray;
|
82
|
+
}
|
83
|
+
|
84
|
+
.spec.failed {
|
85
|
+
background-color: #fbb;
|
86
|
+
border-color: red;
|
87
|
+
}
|
88
|
+
|
89
|
+
.spec.passed {
|
90
|
+
background-color: #bfb;
|
91
|
+
border-color: green;
|
92
|
+
}
|
93
|
+
|
94
|
+
.spec.skipped {
|
95
|
+
background-color: #bbb;
|
96
|
+
}
|
97
|
+
|
98
|
+
.messages {
|
99
|
+
border-left: 1px dashed gray;
|
100
|
+
padding-left: 1em;
|
101
|
+
padding-right: 1em;
|
102
|
+
}
|
103
|
+
|
104
|
+
.passed {
|
105
|
+
background-color: #cfc;
|
106
|
+
display: none;
|
107
|
+
}
|
108
|
+
|
109
|
+
.failed {
|
110
|
+
background-color: #fbb;
|
111
|
+
}
|
112
|
+
|
113
|
+
.skipped {
|
114
|
+
color: #777;
|
115
|
+
background-color: #eee;
|
116
|
+
display: none;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
/*.resultMessage {*/
|
121
|
+
/*white-space: pre;*/
|
122
|
+
/*}*/
|
123
|
+
|
124
|
+
.resultMessage span.result {
|
125
|
+
display: block;
|
126
|
+
line-height: 2em;
|
127
|
+
color: black;
|
128
|
+
}
|
129
|
+
|
130
|
+
.resultMessage .mismatch {
|
131
|
+
color: black;
|
132
|
+
}
|
133
|
+
|
134
|
+
.stackTrace {
|
135
|
+
white-space: pre;
|
136
|
+
font-size: .8em;
|
137
|
+
margin-left: 10px;
|
138
|
+
max-height: 5em;
|
139
|
+
overflow: auto;
|
140
|
+
border: 1px inset red;
|
141
|
+
padding: 1em;
|
142
|
+
background: #eef;
|
143
|
+
}
|
144
|
+
|
145
|
+
.finished-at {
|
146
|
+
padding-left: 1em;
|
147
|
+
font-size: .6em;
|
148
|
+
}
|
149
|
+
|
150
|
+
.show-passed .passed,
|
151
|
+
.show-skipped .skipped {
|
152
|
+
display: block;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
#jasmine_content {
|
157
|
+
position:fixed;
|
158
|
+
right: 100%;
|
159
|
+
}
|
160
|
+
|
161
|
+
.runner {
|
162
|
+
border: 1px solid gray;
|
163
|
+
display: block;
|
164
|
+
margin: 5px 0;
|
165
|
+
padding: 2px 0 2px 10px;
|
166
|
+
}
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jasmine-stories
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Dominik Guzei
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-04-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: haml
|
16
|
+
requirement: !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: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: Full support for the Rails 3.1 asset pipeline when acceptance testing
|
31
|
+
your coffeescript or javascript using jasmine
|
32
|
+
email:
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- .gitignore
|
38
|
+
- Gemfile
|
39
|
+
- Gemfile.lock
|
40
|
+
- MIT-LICENSE
|
41
|
+
- README.md
|
42
|
+
- Rakefile
|
43
|
+
- app/assets/images/.gitkeep
|
44
|
+
- app/assets/javascripts/jasmine-stories.js.coffee
|
45
|
+
- app/assets/stylesheets/application.css
|
46
|
+
- app/controllers/jasmine_stories/application_controller.rb
|
47
|
+
- app/controllers/jasmine_stories/spec_controller.rb
|
48
|
+
- app/views/jasmine_stories/spec/index.html.haml
|
49
|
+
- config/initializers/jasmine-stories.rb
|
50
|
+
- config/routes.rb
|
51
|
+
- jasmine-stories.gemspec
|
52
|
+
- lib/jasmine-stories.rb
|
53
|
+
- lib/jasmine-stories/engine.rb
|
54
|
+
- vendor/assets/images/jasmine_favicon.png
|
55
|
+
- vendor/assets/javascripts/jasmine-grammar.js
|
56
|
+
- vendor/assets/javascripts/jasmine-html.js
|
57
|
+
- vendor/assets/javascripts/jasmine-jquery.js
|
58
|
+
- vendor/assets/javascripts/jasmine-reporting.js
|
59
|
+
- vendor/assets/javascripts/jasmine.js
|
60
|
+
- vendor/assets/javascripts/namespace.js
|
61
|
+
- vendor/assets/stylesheets/jasmine-be-calm.css
|
62
|
+
- vendor/assets/stylesheets/jasmine.css
|
63
|
+
homepage:
|
64
|
+
licenses: []
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 1.8.21
|
84
|
+
signing_key:
|
85
|
+
specification_version: 3
|
86
|
+
summary: Pain free coffeescript acceptance testing for Rails 3.1 using jasmine-species
|
87
|
+
test_files: []
|