jasmine-core 2.1.1 → 2.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e03261d7c9a4a269e5bc90d6b9c54b5ac6c1904
|
4
|
+
data.tar.gz: 5c0c1b7692305aeb4656df1df1ee823622d59d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb9dc6a42bb089db3f4f8c3a160cfd4b02434d8d8aeda075790cf01865430bb8468b6732399b4e0e41443e2177d096123b34ac6d8572bebbbef92aca89853b1
|
7
|
+
data.tar.gz: 865eaf06d2049fd42a56395f66ca21a8e6cd1da09fcbe227f1226e137cb847fd8dc6118324119f35896ad0f33ed58b6e22edb7d53743998803306c79a5eacc5f
|
data/lib/jasmine-core/jasmine.js
CHANGED
@@ -2044,13 +2044,12 @@ getJasmineRequireObj().Suite = function() {
|
|
2044
2044
|
|
2045
2045
|
var allFns = [];
|
2046
2046
|
|
2047
|
-
|
2048
|
-
allFns
|
2049
|
-
|
2050
|
-
for (var i = 0; i < this.children.length; i++) {
|
2051
|
-
allFns.push(wrapChildAsAsync(this.children[i]));
|
2052
|
-
}
|
2047
|
+
for (var i = 0; i < this.children.length; i++) {
|
2048
|
+
allFns.push(wrapChildAsAsync(this.children[i]));
|
2049
|
+
}
|
2053
2050
|
|
2051
|
+
if (this.isExecutable()) {
|
2052
|
+
allFns = this.beforeAllFns.concat(allFns);
|
2054
2053
|
allFns = allFns.concat(this.afterAllFns);
|
2055
2054
|
}
|
2056
2055
|
|
@@ -2906,5 +2905,5 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
2906
2905
|
};
|
2907
2906
|
|
2908
2907
|
getJasmineRequireObj().version = function() {
|
2909
|
-
return '2.1.
|
2908
|
+
return '2.1.2';
|
2910
2909
|
};
|
@@ -186,7 +186,7 @@ describe("Suite", function() {
|
|
186
186
|
expect(afterAllFn.fn).toHaveBeenCalled();
|
187
187
|
});
|
188
188
|
|
189
|
-
it("does not run beforeAll or afterAll if there are no child specs
|
189
|
+
it("does not run beforeAll or afterAll if there are no executable child specs", function() {
|
190
190
|
var env = new j$.Env(),
|
191
191
|
fakeQueueRunnerForParent = jasmine.createSpy('fake parent queue runner'),
|
192
192
|
fakeQueueRunnerForChild = jasmine.createSpy('fake child queue runner'),
|
@@ -209,7 +209,9 @@ describe("Suite", function() {
|
|
209
209
|
parentSuite.afterAll(afterAllFn);
|
210
210
|
|
211
211
|
parentSuite.execute();
|
212
|
-
expect(fakeQueueRunnerForParent).toHaveBeenCalledWith(jasmine.objectContaining({
|
212
|
+
expect(fakeQueueRunnerForParent).toHaveBeenCalledWith(jasmine.objectContaining({
|
213
|
+
queueableFns: [{ fn: jasmine.any(Function) }]
|
214
|
+
}));
|
213
215
|
});
|
214
216
|
|
215
217
|
it("calls a provided onStart callback when starting", function() {
|
@@ -1101,8 +1101,10 @@ describe("Env integration", function() {
|
|
1101
1101
|
|
1102
1102
|
reporter.jasmineDone.and.callFake(function() {
|
1103
1103
|
expect(reporter.jasmineStarted).toHaveBeenCalledWith({
|
1104
|
-
totalSpecsDefined:
|
1104
|
+
totalSpecsDefined: 5
|
1105
1105
|
});
|
1106
|
+
|
1107
|
+
expect(reporter.specDone.calls.count()).toBe(5);
|
1106
1108
|
var suiteResult = reporter.suiteStarted.calls.argsFor(1)[0];
|
1107
1109
|
expect(suiteResult.description).toEqual("A Suite");
|
1108
1110
|
|
@@ -1123,6 +1125,13 @@ describe("Env integration", function() {
|
|
1123
1125
|
env.expect(true).toBe(false);
|
1124
1126
|
});
|
1125
1127
|
});
|
1128
|
+
|
1129
|
+
env.describe('with only pending specs', function() {
|
1130
|
+
env.it('is pending');
|
1131
|
+
env.xit('is pending', function() {
|
1132
|
+
env.expect(true).toBe(true);
|
1133
|
+
});
|
1134
|
+
});
|
1126
1135
|
});
|
1127
1136
|
|
1128
1137
|
env.execute();
|
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.2
|
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-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|