jspec 2.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/History.rdoc +522 -0
  2. data/Manifest +57 -0
  3. data/README.rdoc +825 -0
  4. data/Rakefile +75 -0
  5. data/bin/jspec +305 -0
  6. data/jspec.gemspec +44 -0
  7. data/lib/images/bg.png +0 -0
  8. data/lib/images/hr.png +0 -0
  9. data/lib/images/loading.gif +0 -0
  10. data/lib/images/sprites.bg.png +0 -0
  11. data/lib/images/sprites.png +0 -0
  12. data/lib/images/vr.png +0 -0
  13. data/lib/jspec.css +145 -0
  14. data/lib/jspec.jquery.js +71 -0
  15. data/lib/jspec.js +1771 -0
  16. data/lib/jspec.shell.js +36 -0
  17. data/lib/jspec.timers.js +90 -0
  18. data/lib/jspec.xhr.js +183 -0
  19. data/server/browsers.rb +228 -0
  20. data/server/helpers.rb +82 -0
  21. data/server/routes.rb +57 -0
  22. data/server/server.rb +88 -0
  23. data/spec/async +1 -0
  24. data/spec/env.js +695 -0
  25. data/spec/fixtures/test.html +1 -0
  26. data/spec/fixtures/test.json +1 -0
  27. data/spec/fixtures/test.xml +5 -0
  28. data/spec/helpers.js +66 -0
  29. data/spec/server.rb +2 -0
  30. data/spec/spec.dom.html +34 -0
  31. data/spec/spec.fixtures.js +18 -0
  32. data/spec/spec.grammar-less.js +34 -0
  33. data/spec/spec.grammar.js +226 -0
  34. data/spec/spec.jquery.js +176 -0
  35. data/spec/spec.jquery.xhr.js +65 -0
  36. data/spec/spec.js +166 -0
  37. data/spec/spec.matchers.js +493 -0
  38. data/spec/spec.modules.js +67 -0
  39. data/spec/spec.node.js +46 -0
  40. data/spec/spec.rhino.js +17 -0
  41. data/spec/spec.server.html +29 -0
  42. data/spec/spec.shared-behaviors.js +80 -0
  43. data/spec/spec.utils.js +279 -0
  44. data/spec/spec.xhr.js +156 -0
  45. data/templates/default/History.rdoc +4 -0
  46. data/templates/default/README.rdoc +29 -0
  47. data/templates/default/lib/yourlib.core.js +2 -0
  48. data/templates/default/spec/server.rb +4 -0
  49. data/templates/default/spec/spec.core.js +8 -0
  50. data/templates/default/spec/spec.dom.html +20 -0
  51. data/templates/default/spec/spec.rhino.js +8 -0
  52. data/templates/default/spec/spec.server.html +16 -0
  53. data/templates/rails/server.rb +4 -0
  54. data/templates/rails/spec.application.js +8 -0
  55. data/templates/rails/spec.dom.html +20 -0
  56. data/templates/rails/spec.rhino.js +8 -0
  57. data/templates/rails/spec.server.html +16 -0
  58. metadata +168 -0
@@ -0,0 +1,29 @@
1
+
2
+ = YourLib
3
+
4
+ Description
5
+
6
+ == License
7
+
8
+ (The MIT License)
9
+
10
+ Copyright (c) 2009 Your Name <Your Email>
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining
13
+ a copy of this software and associated documentation files (the
14
+ 'Software'), to deal in the Software without restriction, including
15
+ without limitation the rights to use, copy, modify, merge, publish,
16
+ distribute, sublicense, and/or sell copies of the Software, and to
17
+ permit persons to whom the Software is furnished to do so, subject to
18
+ the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be
21
+ included in all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
24
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
27
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
28
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
29
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,2 @@
1
+
2
+ // Your library here
@@ -0,0 +1,4 @@
1
+
2
+ get '/lib/*' do |path|
3
+ send_file File.dirname(__FILE__) + '/../lib/' + path
4
+ end
@@ -0,0 +1,8 @@
1
+
2
+ describe 'YourLib'
3
+ describe '.someMethod()'
4
+ it 'should do something'
5
+ true.should.be true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,20 @@
1
+ <html>
2
+ <head>
3
+ <link type="text/css" rel="stylesheet" href="JSPEC_ROOT/lib/jspec.css" />
4
+ <script src="JSPEC_ROOT/lib/jspec.js"></script>
5
+ <script src="../lib/yourlib.core.js"></script>
6
+ <script>
7
+ function runSuites() {
8
+ JSpec
9
+ .exec('spec.core.js')
10
+ .run()
11
+ .report()
12
+ }
13
+ </script>
14
+ </head>
15
+ <body class="jspec" onLoad="runSuites();">
16
+ <div id="jspec-top"><h2 id="jspec-title">JSpec <em><script>document.write(JSpec.version)</script></em></h2></div>
17
+ <div id="jspec"></div>
18
+ <div id="jspec-bottom"></div>
19
+ </body>
20
+ </html>
@@ -0,0 +1,8 @@
1
+
2
+ load('JSPEC_ROOT/lib/jspec.js')
3
+ load('lib/yourlib.core.js')
4
+
5
+ JSpec
6
+ .exec('spec/spec.core.js')
7
+ .run({ formatter: JSpec.formatters.Terminal })
8
+ .report()
@@ -0,0 +1,16 @@
1
+ <html>
2
+ <head>
3
+ <script src="/jspec/jspec.js"></script>
4
+ <script src="/lib/yourlib.core.js"></script>
5
+ <script>
6
+ function runSuites() {
7
+ JSpec
8
+ .exec('spec.core.js')
9
+ .run({ formatter: JSpec.formatters.Server, verbose: true, failuresOnly: true })
10
+ .report()
11
+ }
12
+ </script>
13
+ </head>
14
+ <body class="jspec" onLoad="runSuites();">
15
+ </body>
16
+ </html>
@@ -0,0 +1,4 @@
1
+
2
+ get '/public/*' do |path|
3
+ send_file File.dirname(__FILE__) + '/../public/' + path
4
+ end
@@ -0,0 +1,8 @@
1
+
2
+ describe 'YourLib'
3
+ describe '.someMethod()'
4
+ it 'should do something'
5
+ true.should.be true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,20 @@
1
+ <html>
2
+ <head>
3
+ <link type="text/css" rel="stylesheet" href="JSPEC_ROOT/lib/jspec.css" />
4
+ <script src="JSPEC_ROOT/lib/jspec.js"></script>
5
+ <script src="../public/javascripts/application.js"></script>
6
+ <script>
7
+ function runSuites() {
8
+ JSpec
9
+ .exec('spec.application.js')
10
+ .run()
11
+ .report()
12
+ }
13
+ </script>
14
+ </head>
15
+ <body class="jspec" onLoad="runSuites();">
16
+ <div id="jspec-top"><h2 id="jspec-title">JSpec <em><script>document.write(JSpec.version)</script></em></h2></div>
17
+ <div id="jspec"></div>
18
+ <div id="jspec-bottom"></div>
19
+ </body>
20
+ </html>
@@ -0,0 +1,8 @@
1
+
2
+ load('JSPEC_ROOT/lib/jspec.js')
3
+ load('public/javascripts/application.js')
4
+
5
+ JSpec
6
+ .exec('jspec/spec.application.js')
7
+ .run({ formatter: JSpec.formatters.Terminal })
8
+ .report()
@@ -0,0 +1,16 @@
1
+ <html>
2
+ <head>
3
+ <script src="/jspec/jspec.js"></script>
4
+ <script src="/public/javascripts/application.js"></script>
5
+ <script>
6
+ function runSuites() {
7
+ JSpec
8
+ .exec('spec.application.js')
9
+ .run({ formatter: JSpec.formatters.Server, verbose: true, failuresOnly: true })
10
+ .report()
11
+ }
12
+ </script>
13
+ </head>
14
+ <body class="jspec" onLoad="runSuites();">
15
+ </body>
16
+ </html>
metadata ADDED
@@ -0,0 +1,168 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jspec
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.11.2
5
+ platform: ruby
6
+ authors:
7
+ - TJ Holowaychuk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-21 00:00:00 -07:00
13
+ default_executable: jspec
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: sinatra
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: json
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: visionmedia-commander
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 3.2.9
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: visionmedia-bind
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.2.6
54
+ version:
55
+ description: JavaScript BDD Testing Framework
56
+ email: tj@vision-media.ca
57
+ executables:
58
+ - jspec
59
+ extensions: []
60
+
61
+ extra_rdoc_files:
62
+ - README.rdoc
63
+ - bin/jspec
64
+ - lib/images/bg.png
65
+ - lib/images/hr.png
66
+ - lib/images/loading.gif
67
+ - lib/images/sprites.bg.png
68
+ - lib/images/sprites.png
69
+ - lib/images/vr.png
70
+ - lib/jspec.css
71
+ - lib/jspec.jquery.js
72
+ - lib/jspec.js
73
+ - lib/jspec.shell.js
74
+ - lib/jspec.timers.js
75
+ - lib/jspec.xhr.js
76
+ files:
77
+ - History.rdoc
78
+ - Manifest
79
+ - README.rdoc
80
+ - Rakefile
81
+ - bin/jspec
82
+ - jspec.gemspec
83
+ - lib/images/bg.png
84
+ - lib/images/hr.png
85
+ - lib/images/loading.gif
86
+ - lib/images/sprites.bg.png
87
+ - lib/images/sprites.png
88
+ - lib/images/vr.png
89
+ - lib/jspec.css
90
+ - lib/jspec.jquery.js
91
+ - lib/jspec.js
92
+ - lib/jspec.shell.js
93
+ - lib/jspec.timers.js
94
+ - lib/jspec.xhr.js
95
+ - server/browsers.rb
96
+ - server/helpers.rb
97
+ - server/routes.rb
98
+ - server/server.rb
99
+ - spec/async
100
+ - spec/env.js
101
+ - spec/fixtures/test.html
102
+ - spec/fixtures/test.json
103
+ - spec/fixtures/test.xml
104
+ - spec/helpers.js
105
+ - spec/server.rb
106
+ - spec/spec.dom.html
107
+ - spec/spec.fixtures.js
108
+ - spec/spec.grammar-less.js
109
+ - spec/spec.grammar.js
110
+ - spec/spec.jquery.js
111
+ - spec/spec.jquery.xhr.js
112
+ - spec/spec.js
113
+ - spec/spec.matchers.js
114
+ - spec/spec.modules.js
115
+ - spec/spec.node.js
116
+ - spec/spec.rhino.js
117
+ - spec/spec.server.html
118
+ - spec/spec.shared-behaviors.js
119
+ - spec/spec.utils.js
120
+ - spec/spec.xhr.js
121
+ - templates/default/History.rdoc
122
+ - templates/default/README.rdoc
123
+ - templates/default/lib/yourlib.core.js
124
+ - templates/default/spec/server.rb
125
+ - templates/default/spec/spec.core.js
126
+ - templates/default/spec/spec.dom.html
127
+ - templates/default/spec/spec.rhino.js
128
+ - templates/default/spec/spec.server.html
129
+ - templates/rails/server.rb
130
+ - templates/rails/spec.application.js
131
+ - templates/rails/spec.dom.html
132
+ - templates/rails/spec.rhino.js
133
+ - templates/rails/spec.server.html
134
+ has_rdoc: true
135
+ homepage: http://visionmedia.github.com/jspec
136
+ licenses: []
137
+
138
+ post_install_message:
139
+ rdoc_options:
140
+ - --line-numbers
141
+ - --inline-source
142
+ - --title
143
+ - Jspec
144
+ - --main
145
+ - README.rdoc
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: "0"
153
+ version:
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: "1.2"
159
+ version:
160
+ requirements: []
161
+
162
+ rubyforge_project: jspec
163
+ rubygems_version: 1.3.5
164
+ signing_key:
165
+ specification_version: 3
166
+ summary: JavaScript BDD Testing Framework
167
+ test_files: []
168
+