jasmine-core 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3c55f40da8c8da5e3d89ae36a5aaae867bd50ea
4
- data.tar.gz: 3d48a8581f0ca9decccbb8fe75ae82f22bd99e40
3
+ metadata.gz: 11370b29a71513e229564a65085361843d7bb6f8
4
+ data.tar.gz: c650cbac646a9040b7fe91b3d2245817d7a2b552
5
5
  SHA512:
6
- metadata.gz: e506e314ceeef5435bdd4ad916f93efe9c006cc71f5404c0376c2718fe10af4a83a4d51ffc3df7b143d9000484d6ae19013675e00cda8607db9cb0f3f27dbae9
7
- data.tar.gz: d1856674ca87ce7da66ec763ba372bbc034631943f607ae4b1ece8ee395112cd2027feecb217c115a90de4e0201a614894ff25dff6fd6d6746954af075585113
6
+ metadata.gz: 703cf9d63b43d4e2b583b35de4964becc55c7d9f8aa61f5f23a60349e3e3883885532c6fae1533e38fcb359f71452c70d9665b26294f06ea1139e397675b1f06
7
+ data.tar.gz: 8e250777bf0f47a43a4d1bec135df58efc9115f93c0397e324d629e765e222a04e9e7fd0725ce4dc3ee27e4de3816f6e1aaed4d97c57fca9d5c6ebcfefdab572
@@ -574,6 +574,9 @@ getJasmineRequireObj().Env = function(j$) {
574
574
  id: getNextSuiteId(),
575
575
  description: 'Jasmine__TopLevel__Suite',
576
576
  queueRunner: queueRunnerFactory,
577
+ onStart: function(suite) {
578
+ reporter.suiteStarted(suite.result);
579
+ },
577
580
  resultCallback: function(attrs) {
578
581
  reporter.suiteDone(attrs);
579
582
  }
@@ -2903,5 +2906,5 @@ getJasmineRequireObj().interface = function(jasmine, env) {
2903
2906
  };
2904
2907
 
2905
2908
  getJasmineRequireObj().version = function() {
2906
- return '2.1.0';
2909
+ return '2.1.1';
2907
2910
  };
@@ -100,6 +100,21 @@ describe("Env integration", function() {
100
100
  env.execute();
101
101
  });
102
102
 
103
+ it('Tells the reporter when the top-level suite has started and finished', function(done) {
104
+ var env = new j$.Env(),
105
+ reporter = jasmine.createSpyObj('reporter', ['suiteStarted', 'suiteDone', 'jasmineDone']);
106
+
107
+ reporter.jasmineDone.and.callFake(function() {
108
+ expect(reporter.suiteStarted).toHaveBeenCalled();
109
+ expect(reporter.suiteDone).toHaveBeenCalled();
110
+ done();
111
+ });
112
+
113
+ env.addReporter(reporter);
114
+
115
+ env.execute();
116
+ });
117
+
103
118
  it("Multiple top-level Suites execute as expected", function(done) {
104
119
  var env = new j$.Env(),
105
120
  calls = [];
@@ -1088,7 +1103,7 @@ describe("Env integration", function() {
1088
1103
  expect(reporter.jasmineStarted).toHaveBeenCalledWith({
1089
1104
  totalSpecsDefined: 3
1090
1105
  });
1091
- var suiteResult = reporter.suiteStarted.calls.first().args[0];
1106
+ var suiteResult = reporter.suiteStarted.calls.argsFor(1)[0];
1092
1107
  expect(suiteResult.description).toEqual("A Suite");
1093
1108
 
1094
1109
  done();
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module Jasmine
6
6
  module Core
7
- VERSION = "2.1.0"
7
+ VERSION = "2.1.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajan Agaskar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-11-14 00:00:00.000000000 Z
13
+ date: 2014-11-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake