Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Renamed have_length_of to have_length

  • Loading branch information...
commit 41ff10346f0ffc42b4a6608d3c54083425c9bbed 1 parent 7ea0620
@tj tj authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  README.rdoc
  2. +1 −1  lib/jspec.js
  3. +1 −1  spec/spec.core.js
View
2  README.rdoc
@@ -80,7 +80,7 @@ then run any number of specific suites, and report.
- be_type be type of x
- be_greater_than >
- be_less_than <
- - have_length_of length of x
+ - have_length length of x
- include include substring, array element, or hash key
- match string should match regexp x
- respond_to property x should be a function
View
2  lib/jspec.js
@@ -25,7 +25,7 @@ var JSpec = {
be_false : "actual == false",
be_type : "typeof actual == expected",
match : "typeof actual == 'string' ? actual.match(expected) : false",
- have_length_of : "actual.length == expected",
+ have_length : "actual.length == expected",
respond_to : "typeof actual[expected] == 'function'",
include : { match : function(expected, actual) {
View
2  spec/spec.core.js
@@ -57,7 +57,7 @@ describe 'Matchers'
end
it 'have_length'
- 'test'.should_have_length_of(4)
+ 'test'.should_have_length(4)
end
it 'respond_to'
Please sign in to comment.
Something went wrong with that request. Please try again.