oojspec 0.0.1 → 0.0.2
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.md +5 -1
- data/lib/assets/javascripts/oojspec.js.coffee +3 -3
- data/lib/oojspec/engine.rb +2 -0
- data/lib/oojspec/version.rb +1 -1
- data/lib/oojspec.rb +0 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -23,6 +23,10 @@ I'd rather prefer to write:
|
|
23
23
|
assert(seats.length)
|
24
24
|
```
|
25
25
|
|
26
|
+
[Here is how it looks like](http://oojspec.herokuapp.com/)
|
27
|
+
(yeah, I know it is failing - it is on purpose so that you can see
|
28
|
+
how the report looks like).
|
29
|
+
|
26
30
|
# Is it production ready?
|
27
31
|
|
28
32
|
It should be, but its API is certainly going to change a lot before it becomes stable.
|
@@ -35,7 +39,7 @@ On the other side, I'll be using it myself in my own projects, replacing my Jasm
|
|
35
39
|
# Where are its tests?
|
36
40
|
|
37
41
|
I'm still not sure on how to properly test it. For the time being, I'm writing some examples
|
38
|
-
in a separate project.
|
42
|
+
in a [separate project](http://github.com/rosenfeld/oojspec-test).
|
39
43
|
|
40
44
|
# Why not just using Buster.js (or Jasmine.js)?
|
41
45
|
|
@@ -7,10 +7,10 @@ window.oojspec = new class OojspecRunner
|
|
7
7
|
@assertions = buster.assertions
|
8
8
|
(logFormatter = buster.create buster.format).quoteStrings = false
|
9
9
|
@assertions.format = buster.bind logFormatter, "ascii"
|
10
|
-
@assertions.on 'pass',
|
11
|
-
@assertions.on 'failure', => @stats.failures++
|
10
|
+
@assertions.on 'pass', => @stats.tests++; @stats.assertions++
|
11
|
+
@assertions.on 'failure', => @stats.tests++; @stats.failures++
|
12
12
|
#@runner.on 'context:start', => @stats.contexts++
|
13
|
-
@runner.on 'test:timeout', => @stats.timeouts
|
13
|
+
@runner.on 'test:timeout', => @stats.timeouts++; @assertions.emit 'failure'
|
14
14
|
@runner.on 'test:error', => @stats.errors++
|
15
15
|
@runner.on 'test:deferred', => @stats.deferred++
|
16
16
|
|
data/lib/oojspec/engine.rb
CHANGED
data/lib/oojspec/version.rb
CHANGED
data/lib/oojspec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oojspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-rails
|
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
segments:
|
87
87
|
- 0
|
88
|
-
hash:
|
88
|
+
hash: -240007266511017517
|
89
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
90
|
none: false
|
91
91
|
requirements:
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
segments:
|
96
96
|
- 0
|
97
|
-
hash:
|
97
|
+
hash: -240007266511017517
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
100
|
rubygems_version: 1.8.24
|