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 CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 3.1.1 / 2010-01-14
3
+ ==================
4
+
5
+ * Fixed include matcher substring matching regexp issue. Closes #132
6
+
2
7
  3.1.0 / 2010-01-05
3
8
  ==================
4
9
 
data/bin/jspec CHANGED
@@ -12,7 +12,7 @@ require 'src/installables'
12
12
  require 'src/server'
13
13
 
14
14
  program :name, 'JSpec'
15
- program :version, '3.1.0'
15
+ program :version, '3.1.1'
16
16
  program :description, 'JavaScript BDD Testing Framework'
17
17
  default_command :bind
18
18
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "3.1.0"
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-05}
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}
@@ -4,7 +4,7 @@
4
4
  ;(function(){
5
5
 
6
6
  JSpec = {
7
- version : '3.1.0',
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().match(arg.toString())
1695
+ state = actual.toString().indexOf(arg) !== -1
1696
1696
  break
1697
1697
 
1698
1698
  case Object:
@@ -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.0
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-05 00:00:00 -08:00
12
+ date: 2010-01-14 00:00:00 -08:00
13
13
  default_executable: jspec
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency