teaspoon-mocha 2.2.4 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teaspoon/mocha/assets/mocha/2.2.5.js +6565 -0
- data/lib/teaspoon/mocha/assets/mocha/2.3.3.js +12418 -0
- data/lib/teaspoon/mocha/assets/support/expect-0.3.1.js +1285 -0
- data/lib/teaspoon/mocha/assets/teaspoon-mocha.js +207 -83
- data/lib/teaspoon/mocha/assets/teaspoon/mocha/spec.coffee +4 -3
- data/lib/teaspoon/mocha/assets/teaspoon/mocha/suite.coffee +2 -2
- data/lib/teaspoon/mocha/framework.rb +1 -1
- data/lib/teaspoon/mocha/templates/spec_helper.coffee +1 -1
- data/lib/teaspoon/mocha/templates/spec_helper.js +1 -1
- data/lib/teaspoon/mocha/version.rb +1 -1
- metadata +6 -3
@@ -1,9 +1,9 @@
|
|
1
|
-
class Teaspoon.Mocha.Spec
|
1
|
+
class Teaspoon.Mocha.Spec extends Teaspoon.Spec
|
2
2
|
|
3
3
|
constructor: (@spec) ->
|
4
4
|
@fullDescription = @spec.fullTitle()
|
5
5
|
@description = @spec.title
|
6
|
-
@link =
|
6
|
+
@link = @filterUrl(@fullDescription)
|
7
7
|
@parent = @spec.parent
|
8
8
|
@suiteName = @parent.fullTitle()
|
9
9
|
@viewId = @spec.viewId
|
@@ -30,5 +30,6 @@ class Teaspoon.Mocha.Spec
|
|
30
30
|
status = "failed"
|
31
31
|
status = "passed" if @spec.state == "passed" || @spec.state == "skipped"
|
32
32
|
status = "pending" if @spec.pending
|
33
|
+
|
33
34
|
status: status
|
34
|
-
skipped: @spec.state == "skipped"
|
35
|
+
skipped: @spec.state == "skipped" || @pending
|
@@ -1,8 +1,8 @@
|
|
1
|
-
class Teaspoon.Mocha.Suite
|
1
|
+
class Teaspoon.Mocha.Suite extends Teaspoon.Suite
|
2
2
|
|
3
3
|
constructor: (@suite) ->
|
4
4
|
@fullDescription = @suite.fullTitle()
|
5
5
|
@description = @suite.title
|
6
|
-
@link =
|
6
|
+
@link = @filterUrl(@fullDescription)
|
7
7
|
@parent = if @suite.parent?.root then null else @suite.parent
|
8
8
|
@viewId = @suite.viewId
|
@@ -7,7 +7,7 @@ module Teaspoon
|
|
7
7
|
framework_name :mocha
|
8
8
|
|
9
9
|
# register standard versions
|
10
|
-
versions = ["1.10.0", "1.17.1", "1.18.2", "1.19.0", "2.0.1", "2.1.0", "2.2.4"]
|
10
|
+
versions = ["1.10.0", "1.17.1", "1.18.2", "1.19.0", "2.0.1", "2.1.0", "2.2.4", "2.2.5", "2.3.3"]
|
11
11
|
|
12
12
|
versions.each do |version|
|
13
13
|
register_version version, "mocha/#{version}.js",
|
@@ -7,7 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
|
9
9
|
# Use this polyfill to avoid the confusion.
|
10
|
-
#= require support/
|
10
|
+
#= require support/phantomjs-shims
|
11
11
|
#
|
12
12
|
# You can require your own javascript files here. By default this will include everything in application, however you
|
13
13
|
# may get better load performance if you require the specific files that are being used in the spec that tests them.
|
@@ -7,7 +7,7 @@
|
|
7
7
|
//
|
8
8
|
// PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
|
9
9
|
// Use this polyfill to avoid the confusion.
|
10
|
-
//= require support/
|
10
|
+
//= require support/phantomjs-shims
|
11
11
|
//
|
12
12
|
// You can require your own javascript files here. By default this will include everything in application, however you
|
13
13
|
// may get better load performance if you require the specific files that are being used in the spec that tests them.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teaspoon-mocha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jejacks0n
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: teaspoon
|
@@ -41,10 +41,13 @@ files:
|
|
41
41
|
- lib/teaspoon/mocha/assets/mocha/2.0.1.js
|
42
42
|
- lib/teaspoon/mocha/assets/mocha/2.1.0.js
|
43
43
|
- lib/teaspoon/mocha/assets/mocha/2.2.4.js
|
44
|
+
- lib/teaspoon/mocha/assets/mocha/2.2.5.js
|
45
|
+
- lib/teaspoon/mocha/assets/mocha/2.3.3.js
|
44
46
|
- lib/teaspoon/mocha/assets/mocha/MIT.LICENSE
|
45
47
|
- lib/teaspoon/mocha/assets/support/chai-1.10.0.js
|
46
48
|
- lib/teaspoon/mocha/assets/support/chai-jq-0.0.7.js
|
47
49
|
- lib/teaspoon/mocha/assets/support/chai.js
|
50
|
+
- lib/teaspoon/mocha/assets/support/expect-0.3.1.js
|
48
51
|
- lib/teaspoon/mocha/assets/support/expect.js
|
49
52
|
- lib/teaspoon/mocha/assets/support/sinon-chai.js
|
50
53
|
- lib/teaspoon/mocha/assets/teaspoon-mocha.js
|
@@ -81,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
84
|
version: '0'
|
82
85
|
requirements: []
|
83
86
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.4.
|
87
|
+
rubygems_version: 2.4.6
|
85
88
|
signing_key:
|
86
89
|
specification_version: 4
|
87
90
|
summary: 'Teaspoon Mocha: A Javascript test runner built on top of Rails for Mocha'
|