jasmine-core 2.3.0 → 2.3.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: 98176a36588bb9db3608725662a81381a2e30c94
4
- data.tar.gz: 549b65f83c96c7a08bdfd73cfad35520a48bce5a
3
+ metadata.gz: d24f7f96232424dad8c2d9c174d0bab476f74111
4
+ data.tar.gz: 40f8739c8a64f21dc86a27dab1a088acf0f641d4
5
5
  SHA512:
6
- metadata.gz: e1feb4daf3115deb475db3b8721a3c7f041ef3b68b955148f31d02d6684b810b3ae5a31c2234dde15cc1895e3ea6e3cb02d72ba1c1c0d579429d7768b92e4dcf
7
- data.tar.gz: 1fbe5447fbd1c40bf0be919d4196b640d4c4df6469340f3840ad34989f6b7e9f7880f63bee407200568566145a5492b6bf8e4714ccfca420bb564e1b05f7f5f7
6
+ metadata.gz: 478644acf536f00f11a12f263561713c27b53657791f6a864922ff0efc190a8052b71d436932f631c89754c661f76276db482af1ec1ffe067e8283347eddb434
7
+ data.tar.gz: 2c466f05576e942f9e4ed81b94a9059174e076028f70b9dcef3314d17bd557f7b02c87b215c9f86f1ebb56449d8811be6b7c36aec06895c3dc188075a3fa594e
@@ -342,7 +342,7 @@ getJasmineRequireObj().Spec = function(j$) {
342
342
 
343
343
  this.onStart(this);
344
344
 
345
- if (!this.isExecutable() || enabled === false) {
345
+ if (!this.isExecutable() || this.markedPending || enabled === false) {
346
346
  complete(enabled);
347
347
  return;
348
348
  }
@@ -419,7 +419,7 @@ getJasmineRequireObj().Spec = function(j$) {
419
419
  };
420
420
 
421
421
  Spec.prototype.isExecutable = function() {
422
- return !this.disabled && !this.markedPending;
422
+ return !this.disabled;
423
423
  };
424
424
 
425
425
  Spec.prototype.getFullName = function() {
@@ -3294,5 +3294,5 @@ getJasmineRequireObj().interface = function(jasmine, env) {
3294
3294
  };
3295
3295
 
3296
3296
  getJasmineRequireObj().version = function() {
3297
- return '2.3.0';
3297
+ return '2.3.2';
3298
3298
  };
@@ -119,7 +119,6 @@ describe("Spec", function() {
119
119
  queueRunnerFactory: fakeQueueRunner
120
120
  });
121
121
 
122
-
123
122
  expect(spec.status()).toBe('pending');
124
123
  });
125
124
 
@@ -402,13 +401,13 @@ describe("Spec", function() {
402
401
  expect(spec.isExecutable()).toBe(false);
403
402
  });
404
403
 
405
- it("should not be executable when pending", function() {
404
+ it("should be executable when pending", function() {
406
405
  var spec = new j$.Spec({
407
406
  queueableFn: { fn: function() {} }
408
407
  });
409
408
  spec.pend();
410
409
 
411
- expect(spec.isExecutable()).toBe(false);
410
+ expect(spec.isExecutable()).toBe(true);
412
411
  });
413
412
 
414
413
  it("should be executable when not disabled or pending", function() {
@@ -1134,6 +1134,27 @@ describe("Env integration", function() {
1134
1134
  });
1135
1135
 
1136
1136
  expect(reporter.specDone.calls.count()).toBe(5);
1137
+
1138
+ expect(reporter.specDone).toHaveBeenCalledWith(jasmine.objectContaining({
1139
+ description: 'with a top level spec',
1140
+ status: 'passed'
1141
+ }));
1142
+
1143
+ expect(reporter.specDone).toHaveBeenCalledWith(jasmine.objectContaining({
1144
+ description: "with an x'ed spec",
1145
+ status: 'pending'
1146
+ }));
1147
+
1148
+ expect(reporter.specDone).toHaveBeenCalledWith(jasmine.objectContaining({
1149
+ description: 'with a spec',
1150
+ status: 'failed'
1151
+ }));
1152
+
1153
+ expect(reporter.specDone).toHaveBeenCalledWith(jasmine.objectContaining({
1154
+ description: 'is pending',
1155
+ status: 'pending'
1156
+ }));
1157
+
1137
1158
  var suiteResult = reporter.suiteStarted.calls.argsFor(0)[0];
1138
1159
  expect(suiteResult.description).toEqual("A Suite");
1139
1160
 
@@ -1147,7 +1168,7 @@ describe("Env integration", function() {
1147
1168
  env.expect(true).toBe(true);
1148
1169
  });
1149
1170
  env.describe("with a nested suite", function() {
1150
- env.xit("with a pending spec", function() {
1171
+ env.xit("with an x'ed spec", function() {
1151
1172
  env.expect(true).toBe(true);
1152
1173
  });
1153
1174
  env.it("with a spec", function() {
@@ -1155,9 +1176,9 @@ describe("Env integration", function() {
1155
1176
  });
1156
1177
  });
1157
1178
 
1158
- env.describe('with only pending specs', function() {
1179
+ env.describe('with only non-executable specs', function() {
1159
1180
  env.it('is pending');
1160
- env.xit('is pending', function() {
1181
+ env.xit('is xed', function() {
1161
1182
  env.expect(true).toBe(true);
1162
1183
  });
1163
1184
  });
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module Jasmine
6
6
  module Core
7
- VERSION = "2.3.0"
7
+ VERSION = "2.3.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.3.0
4
+ version: 2.3.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: 2015-04-28 00:00:00.000000000 Z
13
+ date: 2015-05-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake