jspec 4.3.0 → 4.3.1
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.
- data/History.md +4 -0
- data/jspec.gemspec +1 -1
- data/lib/jspec.js +9 -9
- metadata +3 -3
data/History.md
CHANGED
data/jspec.gemspec
CHANGED
data/lib/jspec.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
;(function(){
|
5
5
|
|
6
6
|
JSpec = {
|
7
|
-
version : '4.3.
|
7
|
+
version : '4.3.1',
|
8
8
|
assert : true,
|
9
9
|
cache : {},
|
10
10
|
suites : [],
|
@@ -1872,17 +1872,17 @@
|
|
1872
1872
|
},
|
1873
1873
|
|
1874
1874
|
have_prop : function(actual, property, value) {
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1875
|
+
var actualVal = actual[property], actualType = typeof actualVal
|
1876
|
+
return (actualType == 'function' || actualType == 'undefined') ? false :
|
1877
|
+
typeof value === 'undefined' ||
|
1878
|
+
does(actual[property],'eql',value)
|
1879
1879
|
},
|
1880
1880
|
|
1881
1881
|
have_property : function(actual, property, value) {
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1882
|
+
var actualVal = actual[property], actualType = typeof actualVal
|
1883
|
+
return (actualType == 'function' || actualType == 'undefined') ? false :
|
1884
|
+
typeof value === 'undefined' ||
|
1885
|
+
value === actualVal
|
1886
1886
|
}
|
1887
1887
|
})
|
1888
1888
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 4
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 4.3.
|
8
|
+
- 1
|
9
|
+
version: 4.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- TJ Holowaychuk
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-04 00:00:00 -
|
17
|
+
date: 2010-05-04 00:00:00 -05:00
|
18
18
|
default_executable: jspec
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|