konacha-chai-matchers 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/VERSIONS +2 -2
- data/lib/konacha-chai-matchers/version.rb +1 -1
- data/vendor/assets/javascripts/chai-changes.js +8 -2
- data/vendor/assets/javascripts/sinon.js +24 -17
- metadata +27 -29
data/Gemfile
CHANGED
data/VERSIONS
CHANGED
@@ -6,10 +6,10 @@ chai-timers: 0.2.0
|
|
6
6
|
chai-stats: 0.2.0
|
7
7
|
chai-null: 0.1.0
|
8
8
|
chai-factories: 0.1.0
|
9
|
-
chai-changes: 1.3.
|
9
|
+
chai-changes: 1.3.1
|
10
10
|
chai-backbone: 0.9.2
|
11
11
|
js-factories: 0.9.0
|
12
12
|
mocha-as-promised: 1.2.1
|
13
13
|
chai-things: 0.1.1
|
14
14
|
chai-fuzzy: 1.1.1
|
15
|
-
sinon: 1.
|
15
|
+
sinon: 1.6.0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Generated by CoffeeScript 1.
|
1
|
+
// Generated by CoffeeScript 1.3.3
|
2
2
|
(function() {
|
3
3
|
|
4
4
|
(function(chaiChanges) {
|
@@ -96,6 +96,7 @@
|
|
96
96
|
flag(context, 'negate', this.negate);
|
97
97
|
object = flag(context, 'whenObject');
|
98
98
|
startValue = object();
|
99
|
+
flag(context, 'changeToStart', startValue);
|
99
100
|
result = !utils.eql(startValue, this.expectedEndValue);
|
100
101
|
if (negate) {
|
101
102
|
result = !result;
|
@@ -104,11 +105,16 @@
|
|
104
105
|
return flag(context, 'negate', negate);
|
105
106
|
};
|
106
107
|
changeToAssert = function(context) {
|
107
|
-
var endValue, negate, object, result;
|
108
|
+
var changed, endValue, negate, object, result, startValue;
|
108
109
|
negate = flag(context, 'negate');
|
109
110
|
flag(context, 'negate', this.negate);
|
110
111
|
object = flag(context, 'whenObject');
|
112
|
+
startValue = flag(context, 'changeToStart');
|
111
113
|
endValue = object();
|
114
|
+
if (!negate) {
|
115
|
+
changed = !utils.eql(startValue, endValue);
|
116
|
+
context.assert(changed, "expected `" + (formatFunction(object)) + "` to change to " + (utils.inspect(this.expectedEndValue)) + ", but it did not change from " + (utils.inspect(startValue)), "not supported");
|
117
|
+
}
|
112
118
|
result = utils.eql(endValue, this.expectedEndValue);
|
113
119
|
context.assert(result, "expected `" + (formatFunction(object)) + "` to change to " + (utils.inspect(this.expectedEndValue)) + ", but it changed to " + (utils.inspect(endValue)), "expected `" + (formatFunction(object)) + "` not to change to " + (utils.inspect(this.expectedEndValue)) + ", but it did");
|
114
120
|
return flag(context, 'negate', negate);
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* Sinon.JS 1.
|
2
|
+
* Sinon.JS 1.6.0, 2013/02/26
|
3
3
|
*
|
4
4
|
* @author Christian Johansen (christian@cjohansen.no)
|
5
5
|
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
|
6
6
|
*
|
7
7
|
* (The BSD License)
|
8
8
|
*
|
9
|
-
* Copyright (c) 2010-
|
9
|
+
* Copyright (c) 2010-2013, Christian Johansen, christian@cjohansen.no
|
10
10
|
* All rights reserved.
|
11
11
|
*
|
12
12
|
* Redistribution and use in source and binary forms, with or without modification,
|
@@ -41,7 +41,7 @@
|
|
41
41
|
* @author Christian Johansen (christian@cjohansen.no)
|
42
42
|
* @license BSD
|
43
43
|
*
|
44
|
-
* Copyright (c) 2010-
|
44
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
45
45
|
*/
|
46
46
|
|
47
47
|
var sinon = (function (buster) {
|
@@ -284,7 +284,7 @@ var sinon = (function (buster) {
|
|
284
284
|
|
285
285
|
calledInOrder: function (spies) {
|
286
286
|
for (var i = 1, l = spies.length; i < l; i++) {
|
287
|
-
if (!spies[i - 1].calledBefore(spies[i])) {
|
287
|
+
if (!spies[i - 1].calledBefore(spies[i]) || !spies[i].called) {
|
288
288
|
return false;
|
289
289
|
}
|
290
290
|
}
|
@@ -627,7 +627,7 @@ var sinon = (function (buster) {
|
|
627
627
|
* @author Christian Johansen (christian@cjohansen.no)
|
628
628
|
* @license BSD
|
629
629
|
*
|
630
|
-
* Copyright (c) 2010-
|
630
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
631
631
|
*/
|
632
632
|
|
633
633
|
(function (sinon) {
|
@@ -1195,7 +1195,7 @@ var sinon = (function (buster) {
|
|
1195
1195
|
* @author Christian Johansen (christian@cjohansen.no)
|
1196
1196
|
* @license BSD
|
1197
1197
|
*
|
1198
|
-
* Copyright (c) 2010-
|
1198
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
1199
1199
|
*/
|
1200
1200
|
|
1201
1201
|
(function (sinon) {
|
@@ -1566,7 +1566,7 @@ var sinon = (function (buster) {
|
|
1566
1566
|
* @author Christian Johansen (christian@cjohansen.no)
|
1567
1567
|
* @license BSD
|
1568
1568
|
*
|
1569
|
-
* Copyright (c) 2010-
|
1569
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
1570
1570
|
*/
|
1571
1571
|
|
1572
1572
|
(function (sinon) {
|
@@ -1991,7 +1991,7 @@ var sinon = (function (buster) {
|
|
1991
1991
|
* @author Christian Johansen (christian@cjohansen.no)
|
1992
1992
|
* @license BSD
|
1993
1993
|
*
|
1994
|
-
* Copyright (c) 2010-
|
1994
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
1995
1995
|
*/
|
1996
1996
|
|
1997
1997
|
(function (sinon) {
|
@@ -2148,7 +2148,7 @@ var sinon = (function (buster) {
|
|
2148
2148
|
* @author Christian Johansen (christian@cjohansen.no)
|
2149
2149
|
* @license BSD
|
2150
2150
|
*
|
2151
|
-
* Copyright (c) 2010-
|
2151
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
2152
2152
|
*/
|
2153
2153
|
|
2154
2154
|
if (typeof sinon == "undefined") {
|
@@ -2568,7 +2568,7 @@ if (typeof sinon == "undefined") {
|
|
2568
2568
|
* @author Christian Johansen (christian@cjohansen.no)
|
2569
2569
|
* @license BSD
|
2570
2570
|
*
|
2571
|
-
* Copyright (c) 2010-
|
2571
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
2572
2572
|
*/
|
2573
2573
|
|
2574
2574
|
if (typeof sinon == "undefined") {
|
@@ -3044,7 +3044,7 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3044
3044
|
* @author Christian Johansen (christian@cjohansen.no)
|
3045
3045
|
* @license BSD
|
3046
3046
|
*
|
3047
|
-
* Copyright (c) 2010-
|
3047
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
3048
3048
|
*/
|
3049
3049
|
|
3050
3050
|
if (typeof sinon == "undefined") {
|
@@ -3260,7 +3260,7 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3260
3260
|
* @author Christian Johansen (christian@cjohansen.no)
|
3261
3261
|
* @license BSD
|
3262
3262
|
*
|
3263
|
-
* Copyright (c) 2010-
|
3263
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
3264
3264
|
*/
|
3265
3265
|
|
3266
3266
|
(function () {
|
@@ -3340,7 +3340,7 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3340
3340
|
* @author Christian Johansen (christian@cjohansen.no)
|
3341
3341
|
* @license BSD
|
3342
3342
|
*
|
3343
|
-
* Copyright (c) 2010-
|
3343
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
3344
3344
|
*/
|
3345
3345
|
|
3346
3346
|
if (typeof module == "object" && typeof require == "function") {
|
@@ -3464,7 +3464,7 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3464
3464
|
* @author Christian Johansen (christian@cjohansen.no)
|
3465
3465
|
* @license BSD
|
3466
3466
|
*
|
3467
|
-
* Copyright (c) 2010-
|
3467
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
3468
3468
|
*/
|
3469
3469
|
|
3470
3470
|
(function (sinon) {
|
@@ -3537,7 +3537,7 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3537
3537
|
* @author Christian Johansen (christian@cjohansen.no)
|
3538
3538
|
* @license BSD
|
3539
3539
|
*
|
3540
|
-
* Copyright (c) 2010-
|
3540
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
3541
3541
|
*/
|
3542
3542
|
|
3543
3543
|
(function (sinon) {
|
@@ -3634,7 +3634,7 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3634
3634
|
* @author Christian Johansen (christian@cjohansen.no)
|
3635
3635
|
* @license BSD
|
3636
3636
|
*
|
3637
|
-
* Copyright (c) 2010-
|
3637
|
+
* Copyright (c) 2010-2013 Christian Johansen
|
3638
3638
|
*/
|
3639
3639
|
|
3640
3640
|
(function (sinon, global) {
|
@@ -3727,7 +3727,14 @@ if (typeof module == "object" && typeof require == "function") {
|
|
3727
3727
|
if (!sinon.calledInOrder(arguments)) {
|
3728
3728
|
try {
|
3729
3729
|
expected = [].join.call(arguments, ", ");
|
3730
|
-
|
3730
|
+
var calls = slice.call(arguments);
|
3731
|
+
var i = calls.length;
|
3732
|
+
while (i) {
|
3733
|
+
if (!calls[--i].called) {
|
3734
|
+
calls.splice(i, 1);
|
3735
|
+
}
|
3736
|
+
}
|
3737
|
+
actual = sinon.orderByFirstCall(calls).join(", ");
|
3731
3738
|
} catch (e) {
|
3732
3739
|
// If this fails, we'll just fall back to the blank string
|
3733
3740
|
}
|
metadata
CHANGED
@@ -1,28 +1,23 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: konacha-chai-matchers
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Matthijs Groen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2013-02-14 00:00:00 Z
|
12
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
|
-
|
16
14
|
description: A set of Chai.js libraries ready to use for Konacha
|
17
|
-
email:
|
15
|
+
email:
|
18
16
|
- matthijs.groen@gmail.com
|
19
17
|
executables: []
|
20
|
-
|
21
18
|
extensions: []
|
22
|
-
|
23
19
|
extra_rdoc_files: []
|
24
|
-
|
25
|
-
files:
|
20
|
+
files:
|
26
21
|
- .gitignore
|
27
22
|
- .gitmodules
|
28
23
|
- Gemfile
|
@@ -51,32 +46,35 @@ files:
|
|
51
46
|
- vendor/assets/javascripts/mocha-as-promised.js
|
52
47
|
- vendor/assets/javascripts/sinon-chai.js
|
53
48
|
- vendor/assets/javascripts/sinon.js
|
54
|
-
homepage:
|
55
|
-
licenses:
|
49
|
+
homepage: ''
|
50
|
+
licenses:
|
56
51
|
- MIT
|
57
52
|
post_install_message:
|
58
53
|
rdoc_options: []
|
59
|
-
|
60
|
-
require_paths:
|
54
|
+
require_paths:
|
61
55
|
- lib
|
62
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
57
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
hash: 567893281
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
66
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version:
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
hash: 567893281
|
74
74
|
requirements: []
|
75
|
-
|
76
75
|
rubyforge_project: konacha-chai-matchers
|
77
|
-
rubygems_version: 1.8.
|
76
|
+
rubygems_version: 1.8.25
|
78
77
|
signing_key:
|
79
78
|
specification_version: 3
|
80
79
|
summary: Chai.js plugins collection for Konacha
|
81
80
|
test_files: []
|
82
|
-
|