jasmine-core 2.5.2 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/console/console.js +1 -1
  3. data/lib/jasmine-core/boot/boot.js +4 -1
  4. data/lib/jasmine-core/boot.js +5 -2
  5. data/lib/jasmine-core/jasmine-html.js +19 -1
  6. data/lib/jasmine-core/jasmine.js +2859 -1571
  7. data/lib/jasmine-core/node_boot.js +1 -1
  8. data/lib/jasmine-core/spec/core/ClearStackSpec.js +67 -0
  9. data/lib/jasmine-core/spec/core/EnvSpec.js +100 -10
  10. data/lib/jasmine-core/spec/core/ExpectationSpec.js +52 -7
  11. data/lib/jasmine-core/spec/core/GlobalErrorsSpec.js +94 -0
  12. data/lib/jasmine-core/spec/core/PrettyPrintSpec.js +37 -1
  13. data/lib/jasmine-core/spec/core/QueueRunnerSpec.js +37 -0
  14. data/lib/jasmine-core/spec/core/SpyRegistrySpec.js +183 -0
  15. data/lib/jasmine-core/spec/core/SpySpec.js +44 -2
  16. data/lib/jasmine-core/spec/core/SuiteSpec.js +3 -18
  17. data/lib/jasmine-core/spec/core/UtilSpec.js +71 -0
  18. data/lib/jasmine-core/spec/core/asymmetric_equality/ArrayContainingSpec.js +13 -0
  19. data/lib/jasmine-core/spec/core/asymmetric_equality/ObjectContainingSpec.js +13 -0
  20. data/lib/jasmine-core/spec/core/integration/CustomMatchersSpec.js +47 -0
  21. data/lib/jasmine-core/spec/core/integration/EnvSpec.js +85 -14
  22. data/lib/jasmine-core/spec/core/integration/SpecRunningSpec.js +45 -3
  23. data/lib/jasmine-core/spec/core/matchers/DiffBuilderSpec.js +47 -0
  24. data/lib/jasmine-core/spec/core/matchers/NullDiffBuilderSpec.js +13 -0
  25. data/lib/jasmine-core/spec/core/matchers/ObjectPathSpec.js +43 -0
  26. data/lib/jasmine-core/spec/core/matchers/matchersUtilSpec.js +57 -1
  27. data/lib/jasmine-core/spec/core/matchers/toBeNegativeInfinitySpec.js +31 -0
  28. data/lib/jasmine-core/spec/core/matchers/toBePositiveInfinitySpec.js +31 -0
  29. data/lib/jasmine-core/spec/core/matchers/toEqualSpec.js +492 -4
  30. data/lib/jasmine-core/spec/core/matchers/toHaveBeenCalledBeforeSpec.js +99 -0
  31. data/lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js +37 -0
  32. data/lib/jasmine-core/spec/helpers/BrowserFlags.js +4 -0
  33. data/lib/jasmine-core/spec/helpers/checkForSet.js +21 -0
  34. data/lib/jasmine-core/spec/html/HtmlReporterSpec.js +58 -0
  35. data/lib/jasmine-core/spec/npmPackage/npmPackageSpec.js +1 -1
  36. data/lib/jasmine-core/version.rb +1 -1
  37. metadata +11 -4
@@ -804,6 +804,64 @@ describe("New HtmlReporter", function() {
804
804
  });
805
805
  });
806
806
 
807
+ describe("and there are disabled specs", function() {
808
+ var env, container, reporter, reporterConfig, specStatus;
809
+ beforeEach(function() {
810
+ env = new jasmineUnderTest.Env();
811
+ container = document.createElement("div");
812
+ reporterConfig = {
813
+ env: env,
814
+ getContainer: function() { return container; },
815
+ createElement: function() { return document.createElement.apply(document, arguments); },
816
+ createTextNode: function() { return document.createTextNode.apply(document, arguments); }
817
+ };
818
+ specStatus = {
819
+ id: 123,
820
+ description: "with a disabled spec",
821
+ fullName: "A Suite with a disabled spec",
822
+ status: "disabled",
823
+ passedExpectations: [],
824
+ failedExpectations: []
825
+ };
826
+ });
827
+
828
+ describe("when the specs are not filtered", function() {
829
+ beforeEach(function() {
830
+ reporterConfig.filterSpecs = false;
831
+ reporter = new jasmineUnderTest.HtmlReporter(reporterConfig);
832
+ reporter.initialize();
833
+ reporter.jasmineStarted({ totalSpecsDefined: 1 });
834
+ reporter.specStarted(specStatus);
835
+ reporter.specDone(specStatus);
836
+ reporter.jasmineDone({});
837
+ });
838
+
839
+ it("shows the disabled spec in the spec list", function() {
840
+ var specList = container.querySelector(".jasmine-summary");
841
+
842
+ expect(specList.innerHTML).toContain('with a disabled spec');
843
+ });
844
+ });
845
+
846
+ describe("when the specs are filtered", function() {
847
+ beforeEach(function() {
848
+ reporterConfig.filterSpecs = true;
849
+ reporter = new jasmineUnderTest.HtmlReporter(reporterConfig);
850
+ reporter.initialize();
851
+ reporter.jasmineStarted({ totalSpecsDefined: 1 });
852
+ reporter.specStarted(specStatus);
853
+ reporter.specDone(specStatus);
854
+ reporter.jasmineDone({});
855
+ });
856
+
857
+ it("doesn't show the disabled spec in the spec list", function() {
858
+ var specList = container.querySelector(".jasmine-summary");
859
+
860
+ expect(specList.innerHTML).toEqual('');
861
+ });
862
+ });
863
+ });
864
+
807
865
  describe("and there are pending specs", function() {
808
866
  var env, container, reporter;
809
867
  beforeEach(function() {
@@ -42,7 +42,7 @@ describe('npm package', function() {
42
42
  }
43
43
  };
44
44
 
45
- fs.unlink(this.tarball);
45
+ fs.unlinkSync(this.tarball);
46
46
  });
47
47
 
48
48
  it('has a root path', function() {
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module Jasmine
6
6
  module Core
7
- VERSION = "2.5.2"
7
+ VERSION = "2.6.0"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - Rajan Agaskar
8
- - Davis W. Frank
9
7
  - Gregg Van Hove
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2016-09-17 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
14
  name: rake
@@ -98,6 +96,7 @@ files:
98
96
  - "./lib/jasmine-core/node_boot.js"
99
97
  - "./lib/jasmine-core/spec/console/ConsoleReporterSpec.js"
100
98
  - "./lib/jasmine-core/spec/core/CallTrackerSpec.js"
99
+ - "./lib/jasmine-core/spec/core/ClearStackSpec.js"
101
100
  - "./lib/jasmine-core/spec/core/ClockSpec.js"
102
101
  - "./lib/jasmine-core/spec/core/DelayedFunctionSchedulerSpec.js"
103
102
  - "./lib/jasmine-core/spec/core/EnvSpec.js"
@@ -105,6 +104,7 @@ files:
105
104
  - "./lib/jasmine-core/spec/core/ExceptionsSpec.js"
106
105
  - "./lib/jasmine-core/spec/core/ExpectationResultSpec.js"
107
106
  - "./lib/jasmine-core/spec/core/ExpectationSpec.js"
107
+ - "./lib/jasmine-core/spec/core/GlobalErrorsSpec.js"
108
108
  - "./lib/jasmine-core/spec/core/JsApiReporterSpec.js"
109
109
  - "./lib/jasmine-core/spec/core/MockDateSpec.js"
110
110
  - "./lib/jasmine-core/spec/core/PrettyPrintSpec.js"
@@ -127,6 +127,9 @@ files:
127
127
  - "./lib/jasmine-core/spec/core/integration/CustomMatchersSpec.js"
128
128
  - "./lib/jasmine-core/spec/core/integration/EnvSpec.js"
129
129
  - "./lib/jasmine-core/spec/core/integration/SpecRunningSpec.js"
130
+ - "./lib/jasmine-core/spec/core/matchers/DiffBuilderSpec.js"
131
+ - "./lib/jasmine-core/spec/core/matchers/NullDiffBuilderSpec.js"
132
+ - "./lib/jasmine-core/spec/core/matchers/ObjectPathSpec.js"
130
133
  - "./lib/jasmine-core/spec/core/matchers/matchersUtilSpec.js"
131
134
  - "./lib/jasmine-core/spec/core/matchers/toBeCloseToSpec.js"
132
135
  - "./lib/jasmine-core/spec/core/matchers/toBeDefinedSpec.js"
@@ -136,12 +139,15 @@ files:
136
139
  - "./lib/jasmine-core/spec/core/matchers/toBeLessThanOrEqualSpec.js"
137
140
  - "./lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js"
138
141
  - "./lib/jasmine-core/spec/core/matchers/toBeNaNSpec.js"
142
+ - "./lib/jasmine-core/spec/core/matchers/toBeNegativeInfinitySpec.js"
139
143
  - "./lib/jasmine-core/spec/core/matchers/toBeNullSpec.js"
144
+ - "./lib/jasmine-core/spec/core/matchers/toBePositiveInfinitySpec.js"
140
145
  - "./lib/jasmine-core/spec/core/matchers/toBeSpec.js"
141
146
  - "./lib/jasmine-core/spec/core/matchers/toBeTruthySpec.js"
142
147
  - "./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js"
143
148
  - "./lib/jasmine-core/spec/core/matchers/toContainSpec.js"
144
149
  - "./lib/jasmine-core/spec/core/matchers/toEqualSpec.js"
150
+ - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledBeforeSpec.js"
145
151
  - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledSpec.js"
146
152
  - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledTimesSpec.js"
147
153
  - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledWithSpec.js"
@@ -149,6 +155,7 @@ files:
149
155
  - "./lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js"
150
156
  - "./lib/jasmine-core/spec/core/matchers/toThrowSpec.js"
151
157
  - "./lib/jasmine-core/spec/helpers/BrowserFlags.js"
158
+ - "./lib/jasmine-core/spec/helpers/checkForSet.js"
152
159
  - "./lib/jasmine-core/spec/helpers/defineJasmineUnderTest.js"
153
160
  - "./lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js"
154
161
  - "./lib/jasmine-core/spec/html/HtmlReporterSpec.js"