jspec 2.11.13 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +714 -0
- data/Manifest +51 -36
- data/README.md +968 -0
- data/Rakefile +4 -53
- data/bin/jspec +93 -224
- data/jspec.gemspec +5 -5
- data/lib/images/sprites.png +0 -0
- data/lib/jspec.css +2 -2
- data/lib/jspec.growl.js +115 -0
- data/lib/jspec.jquery.js +1 -1
- data/lib/jspec.js +98 -101
- data/lib/jspec.shell.js +5 -2
- data/lib/jspec.timers.js +1 -1
- data/lib/jspec.xhr.js +12 -2
- data/spec/commands/example_command.rb +19 -0
- data/spec/dom.html +33 -0
- data/spec/node.js +32 -0
- data/spec/rhino.js +24 -0
- data/spec/ruby/bin/init_spec.rb +101 -0
- data/spec/ruby/bin/install_spec.rb +141 -0
- data/spec/ruby/bin/run_spec.rb +0 -0
- data/spec/ruby/bin/shell_spec.rb +13 -0
- data/spec/ruby/bin/spec_helper.rb +25 -0
- data/spec/ruby/bin/update_spec.rb +72 -0
- data/spec/server.html +29 -0
- data/spec/server.rb +1 -1
- data/spec/{env.js → support/env.js} +554 -664
- data/spec/support/jquery.js +4376 -0
- data/spec/{helpers.js → unit/helpers.js} +2 -0
- data/spec/{spec.fixtures.js → unit/spec.fixtures.js} +0 -1
- data/spec/{spec.grammar-less.js → unit/spec.grammar-less.js} +0 -0
- data/spec/{spec.grammar.js → unit/spec.grammar.js} +1 -11
- data/spec/{spec.jquery.js → unit/spec.jquery.js} +0 -17
- data/spec/{spec.jquery.xhr.js → unit/spec.jquery.xhr.js} +13 -2
- data/spec/unit/spec.js +187 -0
- data/spec/{spec.matchers.js → unit/spec.matchers.js} +141 -66
- data/spec/{spec.modules.js → unit/spec.modules.js} +0 -0
- data/spec/{spec.shared-behaviors.js → unit/spec.shared-behaviors.js} +0 -0
- data/spec/{spec.utils.js → unit/spec.utils.js} +123 -22
- data/spec/{spec.xhr.js → unit/spec.xhr.js} +11 -10
- data/{server → src}/browsers.rb +23 -0
- data/{server → src}/helpers.rb +2 -17
- data/src/installables.rb +229 -0
- data/src/project.rb +340 -0
- data/{server → src}/routes.rb +1 -1
- data/{server → src}/server.rb +0 -0
- data/support/js.jar +0 -0
- data/templates/default/History.md +5 -0
- data/templates/default/{README.rdoc → Readme.md} +3 -3
- data/templates/default/lib/{yourlib.core.js → yourlib.js} +0 -0
- data/templates/default/spec/commands/example_command.rb +19 -0
- data/templates/default/spec/{spec.dom.html → dom.html} +5 -3
- data/templates/default/spec/rhino.js +10 -0
- data/templates/default/spec/server.html +18 -0
- data/templates/default/spec/unit/spec.helper.js +0 -0
- data/templates/default/spec/{spec.core.js → unit/spec.js} +0 -0
- data/templates/rails/commands/example_commands.rb +19 -0
- data/templates/rails/{spec.dom.html → dom.html} +4 -2
- data/templates/rails/rhino.js +10 -0
- data/templates/rails/server.html +18 -0
- data/templates/rails/unit/spec.helper.js +0 -0
- data/templates/rails/{spec.application.js → unit/spec.js} +0 -0
- metadata +56 -41
- data/History.rdoc +0 -590
- data/README.rdoc +0 -842
- data/spec/async +0 -1
- data/spec/jquery.js +0 -19
- data/spec/spec.dom.html +0 -34
- data/spec/spec.js +0 -166
- data/spec/spec.node.js +0 -46
- data/spec/spec.rhino.js +0 -23
- data/spec/spec.server.html +0 -29
- data/templates/default/History.rdoc +0 -4
- data/templates/default/spec/spec.rhino.js +0 -8
- data/templates/default/spec/spec.server.html +0 -16
- data/templates/rails/spec.rhino.js +0 -8
- data/templates/rails/spec.server.html +0 -16
File without changes
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
# uncomment and call with `$ jspec example `
|
3
|
+
|
4
|
+
# command :example do |c|
|
5
|
+
# c.syntax = 'jspec example [options]'
|
6
|
+
# c.description = 'Just an example command'
|
7
|
+
# c.option '-f', '--foo string', 'Does some foo with <string>'
|
8
|
+
# c.option '-b', '--bar [string]', 'Does some bar with [string]'
|
9
|
+
# c.example 'Do some foo', 'jspec example --foo bar'
|
10
|
+
# c.example 'Do some bar', 'jspec example --bar'
|
11
|
+
# c.when_called do |args, options|
|
12
|
+
# p args
|
13
|
+
# p options.__hash__
|
14
|
+
# # options.foo
|
15
|
+
# # options.bar
|
16
|
+
# # options.__hash__[:foo]
|
17
|
+
# # options.__hash__[:bar]
|
18
|
+
# end
|
19
|
+
# end
|
@@ -2,13 +2,15 @@
|
|
2
2
|
<head>
|
3
3
|
<link type="text/css" rel="stylesheet" href="JSPEC_ROOT/lib/jspec.css" />
|
4
4
|
<script src="JSPEC_ROOT/lib/jspec.js"></script>
|
5
|
+
<script src="JSPEC_ROOT/lib/jspec.xhr.js"></script>
|
5
6
|
<script src="../public/javascripts/application.js"></script>
|
7
|
+
<script src="unit/spec.helper.js"></script>
|
6
8
|
<script>
|
7
9
|
function runSuites() {
|
8
10
|
JSpec
|
9
|
-
.exec('spec.
|
11
|
+
.exec('unit/spec.js')
|
10
12
|
.run()
|
11
|
-
.report()
|
13
|
+
.report({ fixturePath: 'fixtures' })
|
12
14
|
}
|
13
15
|
</script>
|
14
16
|
</head>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
load('JSPEC_ROOT/lib/jspec.js')
|
3
|
+
load('JSPEC_ROOT/lib/jspec.xhr.js')
|
4
|
+
load('public/javascripts/application.js')
|
5
|
+
load('jspec/unit/spec.helper.js')
|
6
|
+
|
7
|
+
JSpec
|
8
|
+
.exec('jspec/unit/spec.js')
|
9
|
+
.run({ reporter: JSpec.reporters.Terminal, fixturePath: 'jspec/fixtures' })
|
10
|
+
.report()
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<script src="/jspec/jspec.js"></script>
|
4
|
+
<script src="/jspec/jspec.xhr.js"></script>
|
5
|
+
<script src="/lib/yourlib.js"></script>
|
6
|
+
<script src="/spec/unit/spec.helper.js"></script>
|
7
|
+
<script>
|
8
|
+
function runSuites() {
|
9
|
+
JSpec
|
10
|
+
.exec('unit/spec.js')
|
11
|
+
.run({ reporter: JSpec.reporters.Server, verbose: true, failuresOnly: true, fixturePath: '/spec/fixtures' })
|
12
|
+
.report()
|
13
|
+
}
|
14
|
+
</script>
|
15
|
+
</head>
|
16
|
+
<body class="jspec" onLoad="runSuites();">
|
17
|
+
</body>
|
18
|
+
</html>
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-04 00:00:00 -08:00
|
13
13
|
default_executable: jspec
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -59,7 +59,7 @@ executables:
|
|
59
59
|
extensions: []
|
60
60
|
|
61
61
|
extra_rdoc_files:
|
62
|
-
- README.
|
62
|
+
- README.md
|
63
63
|
- bin/jspec
|
64
64
|
- lib/images/bg.png
|
65
65
|
- lib/images/hr.png
|
@@ -68,18 +68,18 @@ extra_rdoc_files:
|
|
68
68
|
- lib/images/sprites.png
|
69
69
|
- lib/images/vr.png
|
70
70
|
- lib/jspec.css
|
71
|
+
- lib/jspec.growl.js
|
71
72
|
- lib/jspec.jquery.js
|
72
73
|
- lib/jspec.js
|
73
74
|
- lib/jspec.shell.js
|
74
75
|
- lib/jspec.timers.js
|
75
76
|
- lib/jspec.xhr.js
|
76
77
|
files:
|
77
|
-
- History.
|
78
|
+
- History.md
|
78
79
|
- Manifest
|
79
|
-
- README.
|
80
|
+
- README.md
|
80
81
|
- Rakefile
|
81
82
|
- bin/jspec
|
82
|
-
- jspec.gemspec
|
83
83
|
- lib/images/bg.png
|
84
84
|
- lib/images/hr.png
|
85
85
|
- lib/images/loading.gif
|
@@ -87,51 +87,66 @@ files:
|
|
87
87
|
- lib/images/sprites.png
|
88
88
|
- lib/images/vr.png
|
89
89
|
- lib/jspec.css
|
90
|
+
- lib/jspec.growl.js
|
90
91
|
- lib/jspec.jquery.js
|
91
92
|
- lib/jspec.js
|
92
93
|
- lib/jspec.shell.js
|
93
94
|
- lib/jspec.timers.js
|
94
95
|
- lib/jspec.xhr.js
|
95
|
-
-
|
96
|
-
-
|
97
|
-
- server/routes.rb
|
98
|
-
- server/server.rb
|
99
|
-
- spec/async
|
100
|
-
- spec/env.js
|
96
|
+
- spec/commands/example_command.rb
|
97
|
+
- spec/dom.html
|
101
98
|
- spec/fixtures/test.html
|
102
99
|
- spec/fixtures/test.json
|
103
100
|
- spec/fixtures/test.xml
|
104
|
-
- spec/
|
105
|
-
- spec/
|
101
|
+
- spec/node.js
|
102
|
+
- spec/rhino.js
|
103
|
+
- spec/ruby/bin/init_spec.rb
|
104
|
+
- spec/ruby/bin/install_spec.rb
|
105
|
+
- spec/ruby/bin/run_spec.rb
|
106
|
+
- spec/ruby/bin/shell_spec.rb
|
107
|
+
- spec/ruby/bin/spec_helper.rb
|
108
|
+
- spec/ruby/bin/update_spec.rb
|
109
|
+
- spec/server.html
|
106
110
|
- spec/server.rb
|
107
|
-
- spec/
|
108
|
-
- spec/
|
109
|
-
- spec/
|
110
|
-
- spec/spec.
|
111
|
-
- spec/spec.
|
112
|
-
- spec/spec.
|
113
|
-
- spec/spec.js
|
114
|
-
- spec/spec.
|
115
|
-
- spec/spec.
|
116
|
-
- spec/spec.
|
117
|
-
- spec/spec.
|
118
|
-
- spec/spec.
|
119
|
-
- spec/spec.
|
120
|
-
- spec/spec.
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
111
|
+
- spec/support/env.js
|
112
|
+
- spec/support/jquery.js
|
113
|
+
- spec/unit/helpers.js
|
114
|
+
- spec/unit/spec.fixtures.js
|
115
|
+
- spec/unit/spec.grammar-less.js
|
116
|
+
- spec/unit/spec.grammar.js
|
117
|
+
- spec/unit/spec.jquery.js
|
118
|
+
- spec/unit/spec.jquery.xhr.js
|
119
|
+
- spec/unit/spec.js
|
120
|
+
- spec/unit/spec.matchers.js
|
121
|
+
- spec/unit/spec.modules.js
|
122
|
+
- spec/unit/spec.shared-behaviors.js
|
123
|
+
- spec/unit/spec.utils.js
|
124
|
+
- spec/unit/spec.xhr.js
|
125
|
+
- src/browsers.rb
|
126
|
+
- src/helpers.rb
|
127
|
+
- src/installables.rb
|
128
|
+
- src/project.rb
|
129
|
+
- src/routes.rb
|
130
|
+
- src/server.rb
|
131
|
+
- support/js.jar
|
132
|
+
- templates/default/History.md
|
133
|
+
- templates/default/Readme.md
|
134
|
+
- templates/default/lib/yourlib.js
|
135
|
+
- templates/default/spec/commands/example_command.rb
|
136
|
+
- templates/default/spec/dom.html
|
137
|
+
- templates/default/spec/rhino.js
|
138
|
+
- templates/default/spec/server.html
|
125
139
|
- templates/default/spec/server.rb
|
126
|
-
- templates/default/spec/spec.
|
127
|
-
- templates/default/spec/spec.
|
128
|
-
- templates/
|
129
|
-
- templates/
|
140
|
+
- templates/default/spec/unit/spec.helper.js
|
141
|
+
- templates/default/spec/unit/spec.js
|
142
|
+
- templates/rails/commands/example_commands.rb
|
143
|
+
- templates/rails/dom.html
|
144
|
+
- templates/rails/rhino.js
|
145
|
+
- templates/rails/server.html
|
130
146
|
- templates/rails/server.rb
|
131
|
-
- templates/rails/spec.
|
132
|
-
- templates/rails/spec.
|
133
|
-
-
|
134
|
-
- templates/rails/spec.server.html
|
147
|
+
- templates/rails/unit/spec.helper.js
|
148
|
+
- templates/rails/unit/spec.js
|
149
|
+
- jspec.gemspec
|
135
150
|
has_rdoc: true
|
136
151
|
homepage: http://visionmedia.github.com/jspec
|
137
152
|
licenses: []
|
@@ -143,7 +158,7 @@ rdoc_options:
|
|
143
158
|
- --title
|
144
159
|
- Jspec
|
145
160
|
- --main
|
146
|
-
- README.
|
161
|
+
- README.md
|
147
162
|
require_paths:
|
148
163
|
- lib
|
149
164
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/History.rdoc
DELETED
@@ -1,590 +0,0 @@
|
|
1
|
-
|
2
|
-
=== 2.11.13 / 2009-11-22
|
3
|
-
|
4
|
-
* Fixed dom template root replacement
|
5
|
-
* Added Tobias Svensson to contributor list
|
6
|
-
|
7
|
-
=== 2.11.12 / 2009-11-12
|
8
|
-
|
9
|
-
* Changed; DOM formatter displaying several failure messages when present [#89]
|
10
|
-
* Changed; displaying multiple error messages for Terminal formatter
|
11
|
-
* Updated mock timers to 1.0.2
|
12
|
-
* Fixed receive matcher negation issue with the number of times called [#150]
|
13
|
-
|
14
|
-
=== 2.11.11 / 2009-10-23
|
15
|
-
|
16
|
-
* Added cheat sheet install docs
|
17
|
-
* Added Google Group link
|
18
|
-
* Added sarah to contrib list
|
19
|
-
* Changed Terminal formatter's java.lang.System.exit() -> quit()
|
20
|
-
* Removed unnecessary flags from several regexps
|
21
|
-
* Fixed DOM paths when using --freeze [#88]
|
22
|
-
* Fixed __END__
|
23
|
-
|
24
|
-
=== 2.11.10 / 2009-10-19
|
25
|
-
|
26
|
-
* Fixed exit status with Terminal reporter [#77] [thanks darxriggs for reporting]
|
27
|
-
This is now fixed when using `jspec run --rhino` as well as `java -jar js.jar spec/spec.rhino.js`.
|
28
|
-
|
29
|
-
=== 2.11.9 / 2009-10-16
|
30
|
-
|
31
|
-
* Fixed puts() with jQuery instance without .selector should output outerHTML, not innerHTML
|
32
|
-
* Fixed some specs breaking when using Env.js
|
33
|
-
* Fixed Env.js support
|
34
|
-
|
35
|
-
=== 2.11.8 / 2009-10-16
|
36
|
-
|
37
|
-
* Fixed newline support in grammar (supports \r\n, \n, \r)
|
38
|
-
* Fixed tabs in grammar [#11]
|
39
|
-
|
40
|
-
=== 2.11.7 / 2009-10-15
|
41
|
-
|
42
|
-
* Fixed minor grammar issues for windows users [thanks Tony]
|
43
|
-
* Fixes installation issue when XCode is not present; changed dependency json -> json_pure [thanks esbie]
|
44
|
-
* Fixed Chrome#visit; latest builds of Chrome for the mac are now "Google Chrome"
|
45
|
-
|
46
|
-
=== 2.11.6 / 2009-10-12
|
47
|
-
|
48
|
-
* Added Tony to contributor list
|
49
|
-
* Removed JSpec.paramsFor()
|
50
|
-
* Removed module contexts [#72]
|
51
|
-
* Fixed some css styling issues in IE8 [#71]
|
52
|
-
* Fixed; DOM formatter supporting \r\n \r \n for EOL in the body source [Thanks Tony]
|
53
|
-
* Fixed "Access is denied" error in IE
|
54
|
-
* Fixed some css support for older browsers [Thanks Tony]
|
55
|
-
|
56
|
-
=== 2.11.5 / 2009-10-10
|
57
|
-
|
58
|
-
* Fixed dependencies (created by github's gem builder removal)
|
59
|
-
|
60
|
-
=== 2.11.4 / 2009-10-10
|
61
|
-
|
62
|
-
* Updated installation docs
|
63
|
-
* Removed namespaced dependencies (thanks alot github...)
|
64
|
-
|
65
|
-
=== 2.11.3 / 2009-09-30
|
66
|
-
|
67
|
-
* Updated to mock timers 1.0.1
|
68
|
-
fixes an issue where setTimeout(function(){}, 0); tick(100) is never called
|
69
|
-
|
70
|
-
=== 2.11.2 / 2009-09-21
|
71
|
-
|
72
|
-
* Fixed example path in rails template
|
73
|
-
|
74
|
-
=== 2.11.1 / 2009-09-10
|
75
|
-
|
76
|
-
* Fixed JSpec root when using --symlink, --freeze [#36]
|
77
|
-
* Added __END__ to the grammar (works like Ruby's __END__)
|
78
|
-
|
79
|
-
=== 2.11.0 / 2009-09-04
|
80
|
-
|
81
|
-
* Added --symlink switch (links the current version of JSpec to ./spec/lib) [#4]
|
82
|
-
* Added --freeze switch (copies the current version of JSpec to ./spec/lib) [#4]
|
83
|
-
|
84
|
-
=== 2.10.1 / 2009-09-02
|
85
|
-
|
86
|
-
* Added `jspec shell` sub command (interactive Rhino shell through JSpec)
|
87
|
-
* Added jspec.shell.js
|
88
|
-
|
89
|
-
=== 2.10.0 / 2009-08-27
|
90
|
-
|
91
|
-
* Added Async support via mock timers (lib/jspec.timers.js) [#19]
|
92
|
-
* IRC channel up and running! irc://irc.freenode.net#jspec
|
93
|
-
|
94
|
-
=== 2.9.1 / 2009-08-21
|
95
|
-
|
96
|
-
* Added module support for formatters
|
97
|
-
|
98
|
-
=== 2.9.0 / 2009-08-21
|
99
|
-
|
100
|
-
* Server output matching Rhino when using verbose or failuresOnly options
|
101
|
-
* Added mock_request() and unmock_request() as aliases for mockRequest() and unmockRequest()
|
102
|
-
* Added JSpec.JSON.encode()
|
103
|
-
* Added default Sinatra routes /slow/NUMBER and /status/NUMBER for simulating
|
104
|
-
slow reponses and HTTP status codes.
|
105
|
-
* Added server support for loading spec/jspec.rb (or jspec/jspec.rb for rails)
|
106
|
-
Allowing additional browser support to be plugged in, as well as Sinatra routes.
|
107
|
-
* Added dependency for Sinatra (new server)
|
108
|
-
* Added a new Ruby server
|
109
|
-
* Added support for --bind and --server on various platforms
|
110
|
-
* Added Google Chrome support
|
111
|
-
* Added Internet Explorer support
|
112
|
-
* Change; --server without --browsers defaults to all supported browsers
|
113
|
-
* Removed JSpec.reportToServer()
|
114
|
-
Now utilizes JSpec.formatters.Server to handle this
|
115
|
-
functionality.
|
116
|
-
* Fixed Server output escaping (removed html escaping from puts()) [#13]
|
117
|
-
* Fixed JSpec.load(); returns responseText when 2xx or 0 (for file://)
|
118
|
-
|
119
|
-
=== 2.8.4 / 2009-08-02
|
120
|
-
|
121
|
-
* Fixed error thrown when a module has no utilities
|
122
|
-
|
123
|
-
=== 2.8.3 / 2009-07-30
|
124
|
-
|
125
|
-
* Added JSpec.evalHook()
|
126
|
-
* Added JSpec.paramsFor()
|
127
|
-
* Refactored jspec.xhr.js
|
128
|
-
* Fixed mock xhr HEAD method
|
129
|
-
* Fixed node.js print() newline issue
|
130
|
-
* Fixed specs preventing spec/spec.node.js from running
|
131
|
-
|
132
|
-
=== 2.8.2 / 2009-07-29
|
133
|
-
|
134
|
-
* Added JSpec.tryLoading()
|
135
|
-
* Added JSpec.request used to reference the original XMLHttpRequest; used to fix [#149]
|
136
|
-
* Fixed Mock XHR issue messing up JSpec request related utilities such as fixture() [#149]
|
137
|
-
|
138
|
-
=== 2.8.1 / 2009-07-27
|
139
|
-
|
140
|
-
* Added Lawrence Pit as a contributor
|
141
|
-
* Fixed object hash equality [#146]
|
142
|
-
{ a : '1', b : '2' } is now the same as:
|
143
|
-
{ b : '2', a : '1' }
|
144
|
-
|
145
|
-
=== 2.8.0 / 2009-07-27
|
146
|
-
|
147
|
-
* Give readFile precendence over xhr so that fixtures work with mockRequest when using Rhino
|
148
|
-
* Give XMLHttpRequest precedence over microsoft crap
|
149
|
-
* Added Mock Ajax Support
|
150
|
-
* Added mockRequest(), unmockRequest() utilities
|
151
|
-
* Added jspec.xhr.js
|
152
|
-
* Fixed be_visible, and be_hidden. Now implement the jQuery <= 1.3.1 method
|
153
|
-
|
154
|
-
=== 2.7.2 / 2009-07-24
|
155
|
-
|
156
|
-
* Fixed "end" in spec bodies when using the grammar
|
157
|
-
* Fixed "it" in spec bodies when using the grammar [#142]
|
158
|
-
* Changed; HTML entities in descriptions are now escaped for DOM formatter [#141]
|
159
|
-
* Added enno84@gmx.net as a contributor (thanks for the bug reports)
|
160
|
-
|
161
|
-
=== 2.7.1 / 2009-07-17
|
162
|
-
|
163
|
-
* Changed; hash() now accepts null
|
164
|
-
* Fixed should_receive issue with validating boolean args or return values
|
165
|
-
* Fixed --server-only switch
|
166
|
-
* Fixed jQuery dependency error message when jQuery is not available
|
167
|
-
when using jspec.jquery.js
|
168
|
-
|
169
|
-
=== 2.7.0 / 2009-07-14
|
170
|
-
|
171
|
-
* Added fixture() utility function
|
172
|
-
* Templates initialize with example paths to lib
|
173
|
-
|
174
|
-
=== 2.6.0 / 2009-07-09
|
175
|
-
|
176
|
-
* Added Ruby on Rails support
|
177
|
-
* Added exporting of JSpec (node.js etc)
|
178
|
-
* Added be_undefined matcher [#134]
|
179
|
-
|
180
|
-
=== 2.5.1 / 2009-07-07
|
181
|
-
|
182
|
-
* Added intermediate node.js support
|
183
|
-
* Fixed; grammar now allows foo.bar.baz.stub() etc to convert to stub(foo.bar.baz)
|
184
|
-
|
185
|
-
=== 2.5.0 / 2009-07-03
|
186
|
-
|
187
|
-
* Added contrib in README (thanks to anyone who has helped)
|
188
|
-
* Added more shared behavior specs
|
189
|
-
* Added Module.DSLs support for extending / adding new DSLs (DSL exchange not yet fully implemented)
|
190
|
-
* Added spec to make sure methods like end() will not fail due to the grammar
|
191
|
-
* Changed; giving hook precedence to suite hooks (before_each, etc) over module hooks (beforeSuite, etc) ; (thanks mpd)
|
192
|
-
* Changed; calls to stub() without and_return() now simply stub an arbitrary method with no return value
|
193
|
-
* Changed JSpec.include(); now returns JSpec allowing chaining
|
194
|
-
* Fixed having "end" in descriptions which would be replaced with '});'
|
195
|
-
* Fixed negation of should.receive('foo') matcher
|
196
|
-
* Fixed shared behavior assertion count issue
|
197
|
-
|
198
|
-
=== 2.4.3 / 2009-07-02
|
199
|
-
|
200
|
-
* Fixed matcher semicolon matcher issue when using the JSpec grammar
|
201
|
-
* Added pass() util; Spec#pass() and Spec#fail() (thanks gisikw)
|
202
|
-
* Removing Object.prototype.stubby() after specs are finished to prevent pollution
|
203
|
-
|
204
|
-
=== 2.4.2 / 2009-06-30
|
205
|
-
|
206
|
-
* Fixed trailing comma (thanks Kevin)
|
207
|
-
|
208
|
-
=== 2.4.1 / 2009-06-30
|
209
|
-
|
210
|
-
* Moved beforeSpec and afterSpec hook into proper positions
|
211
|
-
allowing for additional assertions within afterSpec.
|
212
|
-
|
213
|
-
=== 2.4.0 / 2009-06-30
|
214
|
-
|
215
|
-
* Added hook() and hookImmutable()
|
216
|
-
* Added support for matcher lists ('be enabled disabled selected') == be_enabled, be_disabled etc
|
217
|
-
* Added JSpec.include()
|
218
|
-
* Added several hooks
|
219
|
-
* Added Module support
|
220
|
-
* Added grammar conversion of Foo.stub('method') to stub(Foo, 'method')
|
221
|
-
* Added grammar conversion of Foo.destub() to destub(Foo)
|
222
|
-
* Require bind gem
|
223
|
-
* Fixed `jspec` bin docs
|
224
|
-
|
225
|
-
=== 2.3.1 / 2009-06-25
|
226
|
-
|
227
|
-
* Fixed; all stubs generated with stub() are restored
|
228
|
-
to their original methods after each 'it' block. See
|
229
|
-
README for details.
|
230
|
-
|
231
|
-
=== 2.3.0 / 2009-06-25
|
232
|
-
|
233
|
-
* Added stub()
|
234
|
-
* Added destub()
|
235
|
-
* Changed; Server responses utilize Rack::Mime now for arbitrary requests
|
236
|
-
|
237
|
-
=== 2.2.1 / 2009-06-22
|
238
|
-
|
239
|
-
* Changed; reportToServer() now accepts url arg
|
240
|
-
|
241
|
-
* Fixed be_empty matcher; now considers {} empty, however { foo : bar } is not
|
242
|
-
* Fixed throw_error error messages for Opera
|
243
|
-
* Fixed throw_error in Rhino (Opera is broken now)
|
244
|
-
* Fixed stray console.log() call
|
245
|
-
|
246
|
-
* Fixed some tab issues.
|
247
|
-
When using the JSpec grammar option you should
|
248
|
-
use the 'soft tabs' feature of your IDE or text editor.
|
249
|
-
A patch for tabs is pending and should be available soon,
|
250
|
-
however be aware that a 'parse error' may occur otherwise.
|
251
|
-
|
252
|
-
=== 2.2.0 / 2009-06-18
|
253
|
-
|
254
|
-
* Added link to JSpec in JSMag June 2009
|
255
|
-
* Added Github gem source location to docs
|
256
|
-
* Changed throw_error matcher; now accepts two arguments
|
257
|
-
* Changed --server; serves from current working directory.
|
258
|
-
This allows files in ../lib/* to be served rather than ./spec/* only.
|
259
|
-
* Refactored argumentsToArray()
|
260
|
-
|
261
|
-
=== 2.1.0 / 2009-06-12
|
262
|
-
|
263
|
-
* Changed `jspec init` to utilize a single template
|
264
|
-
which allows for all three suite running capabilities
|
265
|
-
within a single template. Now after initializing a
|
266
|
-
project you may `jspec run --server`, `jspec run --rhino`
|
267
|
-
etc at any time without modifications.
|
268
|
-
|
269
|
-
=== 2.0.3 / 2009-05-15
|
270
|
-
|
271
|
-
* Table should span full width
|
272
|
-
(Very week release I know, but improperly styled things bug me :) )
|
273
|
-
|
274
|
-
=== 2.0.2 / 2009-05-11
|
275
|
-
|
276
|
-
* Added rails integration link http://github.com/bhauman/jspec-rails
|
277
|
-
* Changed; puts() now displays constructor name when available
|
278
|
-
* Fixed Terminal output which was not displaying due to a recent commit
|
279
|
-
* fixed IE bug : DOM elements don't have valueOf() method
|
280
|
-
|
281
|
-
=== 2.0.1 / 2009-05-01
|
282
|
-
|
283
|
-
* Added better failure messages for throw_error matcher
|
284
|
-
* Renamed print() to puts() [#108]
|
285
|
-
|
286
|
-
=== 2.0.0 / 2009-04-27
|
287
|
-
|
288
|
-
* Added DOM loading indicator [#105]
|
289
|
-
* Added wait() helper for additional async support
|
290
|
-
* Added shared behavior support using should_behave_like('Another Suite')
|
291
|
-
* Added CSS body toggling [#1]
|
292
|
-
* Added receive matcher for Proxy Assertins
|
293
|
-
* Added grammar-less support
|
294
|
-
* Added an_instance_of() helper
|
295
|
-
* Removed .this literal
|
296
|
-
* Removed deprecated be_a_TYPE_input matchers
|
297
|
-
|
298
|
-
* Added ProxyAssertion
|
299
|
-
* Added select() util
|
300
|
-
* Added does() util for report-less assertions
|
301
|
-
* Added find() util
|
302
|
-
* Added JSpec.contentsOf()
|
303
|
-
* Added matchers to body evaluation [#90]
|
304
|
-
|
305
|
-
=== 1.1.7 / 2009-04-22
|
306
|
-
|
307
|
-
* Removed trailing commas causing issues with IE (what a suprise ;) )
|
308
|
-
|
309
|
-
=== 1.1.6 / 2009-04-22
|
310
|
-
|
311
|
-
* Fixed typo in requires()
|
312
|
-
* Added expect()
|
313
|
-
|
314
|
-
=== 1.1.5 / 2009-04-17
|
315
|
-
|
316
|
-
* Strengthened specs for cascading hooks
|
317
|
-
* Fixed cascading hooks
|
318
|
-
|
319
|
-
=== 1.1.4 / 2009-04-17
|
320
|
-
|
321
|
-
* Added rhino and server template files
|
322
|
-
* Added JSpec.hasXhr()
|
323
|
-
* Added JSpec.xhr()
|
324
|
-
* Added Ruby javascript testing server
|
325
|
-
* Added support for options passed to run()
|
326
|
-
* Added failuresOnly for Terminal formatter
|
327
|
-
* Added terminal assertion graphs
|
328
|
-
* Addec color() utility
|
329
|
-
* Added main.puts() since we use print() as a utility
|
330
|
-
* Added rhino support
|
331
|
-
* Added fail() utility function
|
332
|
-
* Added JSpec.Assertion
|
333
|
-
* Added normalizeMatcherMessage()
|
334
|
-
* Added normalizeMatcherBody()
|
335
|
-
* Added have_classes [#19]
|
336
|
-
* Added extend() utility
|
337
|
-
* Added be_an_instance_of matcher
|
338
|
-
* Added constructor checking support for throw_error matcher [#72]
|
339
|
-
* Added file support for exception messages, making them much easier to debug
|
340
|
-
* Added catching of exceptions throw within specs [#46]
|
341
|
-
* Changed; executable aborts when template does not exist
|
342
|
-
* Changed; matchers now normalized upon creation, accepts function, hash, or string.
|
343
|
-
* Changed be() matcher to be strict [#57]
|
344
|
-
* Changed error() to conditionally show line number when available
|
345
|
-
* Renamed Jspec.addSuite to JSpec.describe and Suite#addSpec to Suite#it
|
346
|
-
* Refactored be_a_TYPE_input matchers so that the deprication warning is logged only when calling the method
|
347
|
-
* Fixed JSpec.requires() now works with latest version of JSpec.error()
|
348
|
-
* Fixed error() now displays exceptions throw that do not respond to .message
|
349
|
-
* Fixed commenting bug [#37]
|
350
|
-
* Removed JSpec.main, now just using local main
|
351
|
-
|
352
|
-
=== 1.1.3 / 2009-04-14
|
353
|
-
|
354
|
-
* Removed /test used for the executable, causing gem to fail building
|
355
|
-
|
356
|
-
=== 1.1.2 / 2009-04-14
|
357
|
-
|
358
|
-
* Added `jspec update` sub-command [#63]
|
359
|
-
|
360
|
-
=== 1.1.1 / 2009-04-12
|
361
|
-
|
362
|
-
* Added gemspec
|
363
|
-
|
364
|
-
=== 1.1.0 / 2009-04-12
|
365
|
-
|
366
|
-
* jspec executable fully functional
|
367
|
-
|
368
|
-
=== 1.0.4 / 2009-04-09
|
369
|
-
|
370
|
-
* Added `jspec bind`
|
371
|
-
* Added `jspec run`
|
372
|
-
* Added `jspec init`
|
373
|
-
* Added `jspec` executable
|
374
|
-
* Added gemspec and manifest
|
375
|
-
* Added command-line usage docs
|
376
|
-
* Added custom matchers documentation
|
377
|
-
* Removed double negation
|
378
|
-
|
379
|
-
=== 1.0.3 / 2009-04-08
|
380
|
-
|
381
|
-
* Added have_prop matcher, have_property is now strict [#56]
|
382
|
-
|
383
|
-
=== 1.0.2 / 2009-04-08
|
384
|
-
|
385
|
-
* Added be_selected, be_checked matchers
|
386
|
-
* Added string support to each() each('some foo bar', ...)
|
387
|
-
* Added have_ATTR matchers [#51]
|
388
|
-
* Deprected be_a_TYPE_input matchers [#50]
|
389
|
-
|
390
|
-
=== 1.0.1 / 2009-04-07
|
391
|
-
|
392
|
-
* Added have_property matcher [#53]
|
393
|
-
|
394
|
-
=== 1.0.0 / 2009-04-06
|
395
|
-
|
396
|
-
* Added option() which gives the query string option precedence [#39]
|
397
|
-
* Changed; Using JSpec.options.formatter not JSpec.formatter [#44]
|
398
|
-
* Fixed Console formatter, now displays nested suites
|
399
|
-
* Check out http://visionmedia.github.com/jspec for additional documentation!
|
400
|
-
|
401
|
-
=== 0.9.6 / 2009-04-03
|
402
|
-
|
403
|
-
* Added nesting support
|
404
|
-
* Added printing of nested specs
|
405
|
-
* Added assertion graphs to DOM formatter
|
406
|
-
* Refactored preprocess()
|
407
|
-
* Refactored most of the specs
|
408
|
-
* Renamed preProcess() to preprocess()
|
409
|
-
* Removed running of a single suite via ?suite= for now
|
410
|
-
|
411
|
-
=== 0.9.5 / 2009-04-02
|
412
|
-
|
413
|
-
* Added support for printing of function bodies and regexps [#27]
|
414
|
-
* Added support for strings / regexp with should_throw_error [#26]
|
415
|
-
* Added have_within matcher
|
416
|
-
* Added have_at_most matcher
|
417
|
-
* Added have_at_least matcher
|
418
|
-
* Added have matcher [#24]
|
419
|
-
|
420
|
-
=== 0.9.4 / 2009-04-02
|
421
|
-
|
422
|
-
* Added be_a_TYPE_input matchers (be_a_checkbox_input, be_a_text_input, etc)
|
423
|
-
* Added be_disabled matcher [#21]
|
424
|
-
* Added be_enabled matcher [#20]
|
425
|
-
* Refactored be_visible and be_hidden with $(elem).is()
|
426
|
-
|
427
|
-
=== 0.9.2 / 2009-04-02
|
428
|
-
|
429
|
-
* Added support for multi-arg failure messages [#2]
|
430
|
-
* Better printing of jQuery objects [#15]
|
431
|
-
|
432
|
-
=== 0.9.1 / 2009-04-02
|
433
|
-
|
434
|
-
* Added support for dotted negation of assertions (foo.should.not.equal bar)
|
435
|
-
* Added support for dot-style assertions [#17] (foo.should_not.equal bar)
|
436
|
-
|
437
|
-
=== 0.9.0 / 2009-04-01
|
438
|
-
|
439
|
-
* Added spec for strip()
|
440
|
-
* Added strip()
|
441
|
-
* Added any() util
|
442
|
-
* Added new improved include matcher
|
443
|
-
* Added have_many and have_one matchers
|
444
|
-
* Added have_attr matcher [#14]
|
445
|
-
* Added map() util
|
446
|
-
* Added inject() util
|
447
|
-
* Added escape() util
|
448
|
-
* Added recursive array and object printing
|
449
|
-
* Added DOM formatter option failuresOnly
|
450
|
-
* Added support for running of a single squite via ?suite=...
|
451
|
-
* Added query() util
|
452
|
-
* Added last() util
|
453
|
-
* Added be_within matcher, accepts a range literal
|
454
|
-
* Added inclusive range literal n..n
|
455
|
-
* Added row hover
|
456
|
-
* Refactored range()
|
457
|
-
* Refactored setMessage()
|
458
|
-
* Refactored hash()
|
459
|
-
* Changed; preprocessor passing array of args (multi-arg matcher support)
|
460
|
-
* Changed jQuery to $ for internal usage
|
461
|
-
|
462
|
-
=== 0.8.0 / 2009-02-27
|
463
|
-
|
464
|
-
* Added a new style for the DOM formatter (not finished yet)
|
465
|
-
|
466
|
-
=== 0.7.0 / 2009-02-27
|
467
|
-
|
468
|
-
* Added Console formatter (anything implementing the console object. Firebug, Safari 4, etc)
|
469
|
-
* Added JSpec.options.profile for optional profiling of specs
|
470
|
-
* Added this. literal alternative (view readme)
|
471
|
-
* Moved formatters into JSpec.formatters
|
472
|
-
* Added error() util
|
473
|
-
* Added savings raketask
|
474
|
-
* Fixed parse error bug in Safari 4
|
475
|
-
|
476
|
-
=== 0.6.3 / 2009-02-26
|
477
|
-
|
478
|
-
* Added minification for jspec.jquery.js when packaging before release
|
479
|
-
* Added compression of css when packaging before release
|
480
|
-
|
481
|
-
=== 0.6.2 / 2009-02-26
|
482
|
-
|
483
|
-
* Changed; using $ in jspec.jquery.js for JSpec, take that jQuery ;)
|
484
|
-
* Added addMatchers, print, hash, and each as 'utility functions' this allows
|
485
|
-
JSpec to do each(...) internally instead of JSpec.each(...), while still preventing
|
486
|
-
pollution of the global scope.
|
487
|
-
|
488
|
-
=== 0.6.1 / 2009-02-26
|
489
|
-
|
490
|
-
* Added closrue literal -{ (view README)
|
491
|
-
* Added option to DOM formatter, now allows you to specify which element id to output to
|
492
|
-
|
493
|
-
=== 0.6.0 / 2009-02-24
|
494
|
-
|
495
|
-
* Added JSpec.hash
|
496
|
-
* Added be_null matcher
|
497
|
-
* Allow recursive composite matching using should_eql and should_not_eql
|
498
|
-
For example [1, 2, [3]].should_eql([1, 2, [3]]) is true, works with object
|
499
|
-
'hashes' as well.
|
500
|
-
|
501
|
-
=== 0.5.1 / 2009-02-24
|
502
|
-
|
503
|
-
* Damn auto-release messed up
|
504
|
-
|
505
|
-
=== 0.5.0 / 2009-02-24
|
506
|
-
|
507
|
-
* Added async support for jQuery
|
508
|
-
* Added JSpec.requires for dependencies
|
509
|
-
* Added JSpec.throw
|
510
|
-
* Added JSpec.runSpec
|
511
|
-
* Refactored jspec.jquery.js
|
512
|
-
* Fixed evalBody exceptions, previously was not showing exception message
|
513
|
-
* Fixed bug of JSpec interpreting // in a string such as http:// to be a comment.
|
514
|
-
|
515
|
-
=== 0.4.1 / 2009-02-22
|
516
|
-
|
517
|
-
* Added elements() alias of element()
|
518
|
-
* Added support for string passed to runSuite; runSuite('Matchers') is the same as
|
519
|
-
runSuite(JSpec.suites['Matchers']).
|
520
|
-
* Fixed some documentation
|
521
|
-
|
522
|
-
=== 0.4.0 / 2009-02-20
|
523
|
-
|
524
|
-
* Added comment literal (//)
|
525
|
-
* Added pre-processor for convering matchers.
|
526
|
-
For example 'test'.should_be_true becomes JSpec.match('test', 'should_be', 'true'),
|
527
|
-
preventing pollution of core prototypes.
|
528
|
-
|
529
|
-
=== 0.3.2 / 2009-02-19
|
530
|
-
|
531
|
-
* Added TM bundle (go checkout my jspec.tmbundle repo on github)
|
532
|
-
* Renamed have_length_of to have_length
|
533
|
-
|
534
|
-
=== 0.3.1 / 2009-02-19
|
535
|
-
|
536
|
-
* Added jquery js to package
|
537
|
-
|
538
|
-
=== 0.3.0 / 2009-02-19
|
539
|
-
|
540
|
-
* Added JSpec.match
|
541
|
-
* Added options to report() which are passed to formatter
|
542
|
-
* Added sandbox helpers (reg / jquery)
|
543
|
-
* Added have_child and have_children
|
544
|
-
* Added have_tag and have_tags
|
545
|
-
* Changed exec to only load / eval file
|
546
|
-
* Fixed parser token issue, was previously matching things like end() as literal end
|
547
|
-
|
548
|
-
=== 0.2.3 / 2009-02-18
|
549
|
-
|
550
|
-
* Changed test dir to spec
|
551
|
-
* Changed test.js to core.spec.js
|
552
|
-
|
553
|
-
=== 0.2.2 / 2009-02-18
|
554
|
-
|
555
|
-
* Added contexts
|
556
|
-
|
557
|
-
=== 0.2.0 / 2009-02-18
|
558
|
-
|
559
|
-
* Added release rake task
|
560
|
-
* Added package with minified alternative
|
561
|
-
|
562
|
-
=== 0.1.0 / 2009-02-18
|
563
|
-
|
564
|
-
* Added new sexy syntax (warning: you will have to re-write your specs)
|
565
|
-
* Added pre-processor for optional matcher parens
|
566
|
-
* Added several new matchers
|
567
|
-
* Added matcher aliasing
|
568
|
-
* Added simple matcher declarations
|
569
|
-
* Added __END__
|
570
|
-
* Added yet-to-be-implemented specs
|
571
|
-
* Added loading of suites via JSpec.load
|
572
|
-
|
573
|
-
=== 0.0.4 / 2008-11-03
|
574
|
-
|
575
|
-
* Added ability to pass only a description to it(), meaning not yet implemented
|
576
|
-
|
577
|
-
=== 0.0.3 / 2008-10-28
|
578
|
-
|
579
|
-
* Added should_fail
|
580
|
-
* Added should_match
|
581
|
-
* Added should_not_match
|
582
|
-
* Added should_be and should_not_be
|
583
|
-
|
584
|
-
=== 0.0.2 / 2008-10-28
|
585
|
-
|
586
|
-
* Fixed typo in documentation for pointing to the master repo
|
587
|
-
|
588
|
-
=== 0.0.1 / 2008-10-28
|
589
|
-
|
590
|
-
* Initial release
|