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.
Files changed (4) hide show
  1. data/History.md +4 -0
  2. data/jspec.gemspec +1 -1
  3. data/lib/jspec.js +9 -9
  4. metadata +3 -3
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ 4.3.1 / 2010-05-04
2
+ ==================
3
+
4
+ * Fixed; proper handling of undefind values for have_prop[erty]
1
5
 
2
6
  4.3.0 / 2010-05-04
3
7
  ==================
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "4.3.0"
5
+ s.version = "4.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
@@ -4,7 +4,7 @@
4
4
  ;(function(){
5
5
 
6
6
  JSpec = {
7
- version : '4.3.0',
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
- return actual[property] === undefined ||
1876
- actual[property] instanceof Function ? false:
1877
- value === undefined ? true:
1878
- does(actual[property], 'eql', value)
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
- return actual[property] === undefined ||
1883
- actual[property] instanceof Function ? false:
1884
- value === undefined ? true:
1885
- value === actual[property]
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
- - 0
9
- version: 4.3.0
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 -07: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