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 CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ 3.1.3 / 2010-01-14
3
+ ==================
4
+
5
+ * Fixed node.js template which was missing fixturePath option. Closes #131
6
+ * Fixed some stray globals
7
+
2
8
  3.1.2 / 2010-01-14
3
9
  ==================
4
10
 
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 (18 kb compressed, 1500-ish LOC)
41
+ * Tiny (2000-ish LOC)
42
42
 
43
43
  ## Companies Using JSpec
44
44
 
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.2'
15
+ program :version, '3.1.3'
16
16
  program :description, 'JavaScript BDD Testing Framework'
17
17
  default_command :bind
18
18
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "3.1.2"
5
+ s.version = "3.1.3"
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 : '3.1.2',
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 = function(matcher, args, negate) {
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 = function(matcher) {
1059
+ function to(matcher) {
1060
1060
  return assert(matcher, arguments, false)
1061
1061
  }
1062
1062
 
1063
- not_to = function(matcher) {
1063
+ function not_to(matcher) {
1064
1064
  return assert(matcher, arguments, true)
1065
1065
  }
1066
1066
 
@@ -20,5 +20,5 @@ readFile = function(path) {
20
20
 
21
21
  JSpec
22
22
  .exec('spec/unit/spec.js')
23
- .run({ reporter: JSpec.reporters.Terminal })
23
+ .run({ reporter: JSpec.reporters.Terminal, fixturePath: 'spec/fixtures' })
24
24
  .report()
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.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk