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 +4 -4
- data/lib/jasmine-core/jasmine.js +4 -1
- data/lib/jasmine-core/spec/core/integration/EnvSpec.js +16 -1
- data/lib/jasmine-core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11370b29a71513e229564a65085361843d7bb6f8
|
4
|
+
data.tar.gz: c650cbac646a9040b7fe91b3d2245817d7a2b552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 703cf9d63b43d4e2b583b35de4964becc55c7d9f8aa61f5f23a60349e3e3883885532c6fae1533e38fcb359f71452c70d9665b26294f06ea1139e397675b1f06
|
7
|
+
data.tar.gz: 8e250777bf0f47a43a4d1bec135df58efc9115f93c0397e324d629e765e222a04e9e7fd0725ce4dc3ee27e4de3816f6e1aaed4d97c57fca9d5c6ebcfefdab572
|
data/lib/jasmine-core/jasmine.js
CHANGED
@@ -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.
|
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.
|
1106
|
+
var suiteResult = reporter.suiteStarted.calls.argsFor(1)[0];
|
1092
1107
|
expect(suiteResult.description).toEqual("A Suite");
|
1093
1108
|
|
1094
1109
|
done();
|
data/lib/jasmine-core/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2014-11-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|