teaspoon-jasmine 2.2.0 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
- class Teaspoon.Jasmine1.Spec
1
+ class Teaspoon.Jasmine1.Spec extends Teaspoon.Spec
2
2
 
3
3
  constructor: (@spec) ->
4
4
  @fullDescription = @spec.getFullName()
5
5
  @description = @spec.description
6
- @link = "?grep=#{encodeURIComponent(@fullDescription)}"
6
+ @link = @filterUrl(@fullDescription)
7
7
  @parent = @spec.suite
8
8
  @suiteName = @parent.getFullName()
9
9
  @viewId = @spec.viewId
@@ -1,8 +1,8 @@
1
- class Teaspoon.Jasmine1.Suite
1
+ class Teaspoon.Jasmine1.Suite extends Teaspoon.Suite
2
2
 
3
3
  constructor: (@suite) ->
4
4
  @fullDescription = @suite.getFullName()
5
5
  @description = @suite.description
6
- @link = "?grep=#{encodeURIComponent(@fullDescription)}"
6
+ @link = @filterUrl(@fullDescription)
7
7
  @parent = @suite.parentSuite
8
8
  @viewId = @suite.viewId
@@ -4,7 +4,7 @@ class Teaspoon.Jasmine2.Reporters.HTML extends Teaspoon.Reporters.HTML
4
4
 
5
5
  readConfig: ->
6
6
  super
7
- jasmine.CATCH_EXCEPTIONS = @config["use-catch"]
7
+ jasmine.getEnv().catchExceptions(@config["use-catch"])
8
8
 
9
9
 
10
10
  envInfo: ->
@@ -1,11 +1,12 @@
1
- class Teaspoon.Jasmine2.Spec
1
+ class Teaspoon.Jasmine2.Spec extends Teaspoon.Spec
2
2
 
3
3
  constructor: (@spec) ->
4
4
  @fullDescription = @spec.fullName
5
5
  @description = @spec.description
6
- @link = "?grep=#{encodeURIComponent(@fullDescription)}"
6
+ @link = @filterUrl(@fullDescription)
7
7
  @parent = @spec.parent
8
- @suiteName = @parent.fullName
8
+ # spec may not have a parent if it's being focused
9
+ @suiteName = @parent.fullName if @parent
9
10
  @viewId = @spec.id
10
11
  @pending = @spec.status == "pending"
11
12
 
@@ -29,7 +30,7 @@ class Teaspoon.Jasmine2.Spec
29
30
 
30
31
  result: ->
31
32
  status: @status()
32
- skipped: @spec.status == "disabled"
33
+ skipped: @spec.status == "disabled" || @pending
33
34
 
34
35
 
35
36
  status: ->
@@ -1,8 +1,8 @@
1
- class Teaspoon.Jasmine2.Suite
1
+ class Teaspoon.Jasmine2.Suite extends Teaspoon.Suite
2
2
 
3
3
  constructor: (@suite) ->
4
4
  @fullDescription = @suite.fullName
5
5
  @description = @suite.description
6
- @link = "?grep=#{encodeURIComponent(@fullDescription)}"
6
+ @link = @filterUrl(@fullDescription)
7
7
  @parent = @suite.parent
8
8
  @viewId = @suite.id
@@ -11,7 +11,7 @@ module Teaspoon
11
11
  dependencies: ["teaspoon-jasmine1.js"],
12
12
  dev_deps: ["teaspoon/jasmine1.js"]
13
13
 
14
- versions = ["2.0.3", "2.1.3", "2.2.0"]
14
+ versions = ["2.0.3", "2.1.3", "2.2.0", "2.2.1", "2.3.4"]
15
15
 
16
16
  versions.each do |version|
17
17
  register_version version, "jasmine/#{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/bind-poly
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/bind-poly
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.
@@ -1,5 +1,5 @@
1
1
  module Teaspoon
2
2
  module Jasmine
3
- VERSION = "2.2.0"
3
+ VERSION = "2.3.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teaspoon-jasmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.4
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-05-04 00:00:00.000000000 Z
12
+ date: 2015-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: teaspoon
@@ -38,6 +38,8 @@ files:
38
38
  - lib/teaspoon/jasmine/assets/jasmine/2.0.3.js
39
39
  - lib/teaspoon/jasmine/assets/jasmine/2.1.3.js
40
40
  - lib/teaspoon/jasmine/assets/jasmine/2.2.0.js
41
+ - lib/teaspoon/jasmine/assets/jasmine/2.2.1.js
42
+ - lib/teaspoon/jasmine/assets/jasmine/2.3.4.js
41
43
  - lib/teaspoon/jasmine/assets/jasmine/MIT.LICENSE
42
44
  - lib/teaspoon/jasmine/assets/support/jasmine-jquery-1.7.0.js
43
45
  - lib/teaspoon/jasmine/assets/support/jasmine-jquery-2.0.0.js
@@ -55,7 +57,6 @@ files:
55
57
  - lib/teaspoon/jasmine/assets/teaspoon/jasmine2.coffee
56
58
  - lib/teaspoon/jasmine/assets/teaspoon/jasmine2/fixture.coffee
57
59
  - lib/teaspoon/jasmine/assets/teaspoon/jasmine2/initialize.coffee
58
- - lib/teaspoon/jasmine/assets/teaspoon/jasmine2/reporters/console.coffee
59
60
  - lib/teaspoon/jasmine/assets/teaspoon/jasmine2/reporters/html.coffee
60
61
  - lib/teaspoon/jasmine/assets/teaspoon/jasmine2/responder.coffee
61
62
  - lib/teaspoon/jasmine/assets/teaspoon/jasmine2/runner.coffee
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  version: '0'
86
87
  requirements: []
87
88
  rubyforge_project:
88
- rubygems_version: 2.4.5
89
+ rubygems_version: 2.4.6
89
90
  signing_key:
90
91
  specification_version: 4
91
92
  summary: 'Teaspoon Jasmine: A Javascript test runner built on top of Rails for Jasmine'
@@ -1,18 +0,0 @@
1
- #= require teaspoon/reporters/console
2
-
3
- class Teaspoon.Jasmine2.Reporters.Console extends Teaspoon.Reporters.Console
4
-
5
- reportRunnerStarting: ->
6
- @currentAssertions = []
7
- @log
8
- type: "runner"
9
- total: null
10
- start: JSON.parse(JSON.stringify(@start))
11
-
12
-
13
- reportRunnerResults: =>
14
- @log
15
- type: "result"
16
- elapsed: ((new Teaspoon.Date().getTime() - @start.getTime()) / 1000).toFixed(5)
17
- coverage: window.__coverage__
18
- Teaspoon.finished = true