jspec 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +5 -0
- data/bin/jspec +1 -1
- data/jspec.gemspec +2 -2
- data/lib/jspec.js +2 -2
- data/spec/unit/spec.matchers.js +4 -0
- metadata +2 -2
data/History.md
CHANGED
data/bin/jspec
CHANGED
data/jspec.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{jspec}
|
5
|
-
s.version = "3.1.
|
5
|
+
s.version = "3.1.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"]
|
9
|
-
s.date = %q{2010-01-
|
9
|
+
s.date = %q{2010-01-14}
|
10
10
|
s.default_executable = %q{jspec}
|
11
11
|
s.description = %q{JavaScript BDD Testing Framework}
|
12
12
|
s.email = %q{tj@vision-media.ca}
|
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.1',
|
8
8
|
assert : true,
|
9
9
|
cache : {},
|
10
10
|
suites : [],
|
@@ -1692,7 +1692,7 @@
|
|
1692
1692
|
case Number:
|
1693
1693
|
case RegExp:
|
1694
1694
|
case Function:
|
1695
|
-
state = actual.toString().
|
1695
|
+
state = actual.toString().indexOf(arg) !== -1
|
1696
1696
|
break
|
1697
1697
|
|
1698
1698
|
case Object:
|
data/spec/unit/spec.matchers.js
CHANGED
@@ -183,6 +183,10 @@ describe 'Matchers'
|
|
183
183
|
(/(foo)?bar/).should.include '(foo)'
|
184
184
|
end
|
185
185
|
|
186
|
+
it 'should check if a string contains a substring'
|
187
|
+
'if (foo) return [foo, bar]'.should.include '[foo, bar'
|
188
|
+
end
|
189
|
+
|
186
190
|
it 'should check if a function body includes a string'
|
187
191
|
-{ return [foo, bar] }.should.include 'foo', 'bar'
|
188
192
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-14 00:00:00 -08:00
|
13
13
|
default_executable: jspec
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|