jasmine-core 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11370b29a71513e229564a65085361843d7bb6f8
4
- data.tar.gz: c650cbac646a9040b7fe91b3d2245817d7a2b552
3
+ metadata.gz: 5e03261d7c9a4a269e5bc90d6b9c54b5ac6c1904
4
+ data.tar.gz: 5c0c1b7692305aeb4656df1df1ee823622d59d15
5
5
  SHA512:
6
- metadata.gz: 703cf9d63b43d4e2b583b35de4964becc55c7d9f8aa61f5f23a60349e3e3883885532c6fae1533e38fcb359f71452c70d9665b26294f06ea1139e397675b1f06
7
- data.tar.gz: 8e250777bf0f47a43a4d1bec135df58efc9115f93c0397e324d629e765e222a04e9e7fd0725ce4dc3ee27e4de3816f6e1aaed4d97c57fca9d5c6ebcfefdab572
6
+ metadata.gz: bcb9dc6a42bb089db3f4f8c3a160cfd4b02434d8d8aeda075790cf01865430bb8468b6732399b4e0e41443e2177d096123b34ac6d8572bebbbef92aca89853b1
7
+ data.tar.gz: 865eaf06d2049fd42a56395f66ca21a8e6cd1da09fcbe227f1226e137cb847fd8dc6118324119f35896ad0f33ed58b6e22edb7d53743998803306c79a5eacc5f
@@ -2044,13 +2044,12 @@ getJasmineRequireObj().Suite = function() {
2044
2044
 
2045
2045
  var allFns = [];
2046
2046
 
2047
- if (this.isExecutable()) {
2048
- allFns = allFns.concat(this.beforeAllFns);
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.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 to run", function() {
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({queueableFns: []}));
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: 3
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();
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module Jasmine
6
6
  module Core
7
- VERSION = "2.1.1"
7
+ VERSION = "2.1.2"
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.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-15 00:00:00.000000000 Z
13
+ date: 2014-11-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake