jspec 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +6 -0
- data/README.md +1 -1
- data/bin/jspec +1 -1
- data/jspec.gemspec +1 -1
- data/lib/jspec.js +4 -4
- data/templates/default/spec/node.js +1 -1
- metadata +1 -1
data/History.md
CHANGED
data/README.md
CHANGED
@@ -38,7 +38,7 @@ and **much more**.
|
|
38
38
|
* Interactive Shell
|
39
39
|
* Ruby on Rails Integration
|
40
40
|
* Install support projects with a single command (jQuery, Rhino, Prototype, Dojo, etc)
|
41
|
-
* Tiny (
|
41
|
+
* Tiny (2000-ish LOC)
|
42
42
|
|
43
43
|
## Companies Using JSpec
|
44
44
|
|
data/bin/jspec
CHANGED
data/jspec.gemspec
CHANGED
data/lib/jspec.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
;(function(){
|
5
5
|
|
6
6
|
JSpec = {
|
7
|
-
version : '3.1.
|
7
|
+
version : '3.1.3',
|
8
8
|
assert : true,
|
9
9
|
cache : {},
|
10
10
|
suites : [],
|
@@ -1046,7 +1046,7 @@
|
|
1046
1046
|
*/
|
1047
1047
|
|
1048
1048
|
expect : function(actual) {
|
1049
|
-
assert
|
1049
|
+
function assert(matcher, args, negate) {
|
1050
1050
|
var expected = toArray(args, 1)
|
1051
1051
|
matcher.negate = negate
|
1052
1052
|
assertion = new JSpec.Assertion(matcher, actual, expected, negate)
|
@@ -1056,11 +1056,11 @@
|
|
1056
1056
|
return assertion.result
|
1057
1057
|
}
|
1058
1058
|
|
1059
|
-
to
|
1059
|
+
function to(matcher) {
|
1060
1060
|
return assert(matcher, arguments, false)
|
1061
1061
|
}
|
1062
1062
|
|
1063
|
-
not_to
|
1063
|
+
function not_to(matcher) {
|
1064
1064
|
return assert(matcher, arguments, true)
|
1065
1065
|
}
|
1066
1066
|
|