jazrb 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Jazrb provides support for running JavaScript specs written using the
|
4
4
|
Jasmine JavaScript BDD framework under env.js. It includes support for
|
5
|
-
running via
|
5
|
+
running via wake.
|
6
6
|
|
7
7
|
Discussion at http://groups.google.com/group/jazrb.
|
8
8
|
|
@@ -53,19 +53,15 @@ familiar rspec format. The <tt>--xml</tt> flag
|
|
53
53
|
causes <tt>jazrb</tt> to display the raw XML output.
|
54
54
|
|
55
55
|
To run all the tests in the <tt>spec</tt> directory repeatedly you can
|
56
|
-
use
|
56
|
+
use wake:
|
57
57
|
|
58
58
|
rake test
|
59
59
|
|
60
60
|
or
|
61
61
|
|
62
|
-
|
62
|
+
wake
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
./jazrb.watchr
|
67
|
-
|
68
|
-
See jazrb's own <tt>jazrb.watchr</tt> file and the
|
64
|
+
See jazrb's <tt>Wakefile</tt> file and the
|
69
65
|
discussion on examples below.
|
70
66
|
|
71
67
|
You can also try using <tt>autojaz</tt> as
|
@@ -76,19 +72,18 @@ you would use <tt>autospec</tt>:
|
|
76
72
|
You'll need to install the ZenTest gem if you don't have it installed;
|
77
73
|
<tt>jazrb</tt> can be used without ZenTest installed, but
|
78
74
|
<tt>autojaz</tt> cannot be. Note that <tt>autojaz</tt> may be
|
79
|
-
deprecated in favor of <tt>
|
75
|
+
deprecated in favor of <tt>wake</tt>.
|
80
76
|
|
81
77
|
Screen shot at http://www.scrnshots.com/users/smparkes/screenshots/206033
|
82
78
|
|
83
79
|
== Examples
|
84
80
|
|
85
81
|
There are examples in <tt>examples/*</tt> and <tt>spec/examples/*</tt>. You can run the
|
86
|
-
tests with <tt>rake test</tt> which will run
|
87
|
-
|
88
|
-
autojaz.) You'll need the
|
82
|
+
tests with <tt>rake test</tt> which will run wake against the Wakefile.
|
83
|
+
(Wake as a runner will probably replace
|
84
|
+
autojaz.) You'll need the wake gem.
|
89
85
|
|
90
|
-
Running
|
91
|
-
or as <tt>./jazrb.watchr</tt> will run all the
|
86
|
+
Running wake will run all the
|
92
87
|
tests and then watch the file system for changes. When it sees a change,
|
93
88
|
it reruns the test. It knows how to find the HTML fixtures for specs
|
94
89
|
where they exist in the right place, or it just runs the JavaScript
|
@@ -109,9 +104,9 @@ to true.
|
|
109
104
|
|
110
105
|
== Recent Changes
|
111
106
|
|
112
|
-
1. Pass dependence flag to envjsrb to support
|
107
|
+
1. Pass dependence flag to envjsrb to support wake dependences
|
113
108
|
|
114
|
-
1. Add
|
109
|
+
1. Add wake support
|
115
110
|
|
116
111
|
1. Add example
|
117
112
|
|
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
begin; require 'watchr/event_handlers/em'; rescue LoadError; end
|
4
|
-
begin; require 'watchr/deps'; rescue LoadError; end
|
1
|
+
begin; require 'wake/event_handlers/em'; rescue LoadError; end
|
2
|
+
begin; require 'wake/deps'; rescue LoadError; end
|
5
3
|
|
6
4
|
# p "reload"
|
7
5
|
|
8
6
|
watch( %r(.*), :modified, lambda { |md| File.directory? md[0] } ) do |md|
|
9
|
-
raise
|
7
|
+
raise Wake::Refresh
|
10
8
|
end
|
11
9
|
|
12
|
-
watch( %r(jasmine.
|
13
|
-
raise
|
10
|
+
watch( %r(jasmine.wake), :modified ) do |md|
|
11
|
+
raise Wake::Refresh
|
14
12
|
end
|
15
13
|
|
16
14
|
map_to_test = lambda do |file, event|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jazrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Parkes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-26 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- vendor/jasmine/MIT.LICENSE
|
136
136
|
- vendor/jasmine/README.markdown
|
137
137
|
- vendor/jasmine/Rakefile
|
138
|
+
- vendor/jasmine/Wakefile
|
138
139
|
- vendor/jasmine/contrib/ruby/jasmine_runner.rb
|
139
140
|
- vendor/jasmine/contrib/ruby/jasmine_spec_builder.rb
|
140
141
|
- vendor/jasmine/contrib/ruby/run.html
|
@@ -196,7 +197,6 @@ files:
|
|
196
197
|
- vendor/jasmine/images/question-bk.png
|
197
198
|
- vendor/jasmine/images/questionbk-16.png
|
198
199
|
- vendor/jasmine/images/spinner.gif
|
199
|
-
- vendor/jasmine/jasmine.watchr
|
200
200
|
- vendor/jasmine/lib/EnvjsReporter.js
|
201
201
|
- vendor/jasmine/lib/TrivialReporter.js
|
202
202
|
- vendor/jasmine/lib/XMLReporter.js
|