Skip to content

Commit

Permalink
- Renamed have_length_of to have_length
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 19, 2009
1 parent 7ea0620 commit 41ff103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -80,7 +80,7 @@ then run any number of specific suites, and report.
- be_type be type of x - be_type be type of x
- be_greater_than > - be_greater_than >
- be_less_than < - be_less_than <
- have_length_of length of x - have_length length of x
- include include substring, array element, or hash key - include include substring, array element, or hash key
- match string should match regexp x - match string should match regexp x
- respond_to property x should be a function - respond_to property x should be a function
Expand Down
2 changes: 1 addition & 1 deletion lib/jspec.js
Expand Up @@ -25,7 +25,7 @@ var JSpec = {
be_false : "actual == false", be_false : "actual == false",
be_type : "typeof actual == expected", be_type : "typeof actual == expected",
match : "typeof actual == 'string' ? actual.match(expected) : false", 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'", respond_to : "typeof actual[expected] == 'function'",


include : { match : function(expected, actual) { include : { match : function(expected, actual) {
Expand Down
2 changes: 1 addition & 1 deletion spec/spec.core.js
Expand Up @@ -57,7 +57,7 @@ describe 'Matchers'
end end


it 'have_length' it 'have_length'
'test'.should_have_length_of(4) 'test'.should_have_length(4)
end end


it 'respond_to' it 'respond_to'
Expand Down

0 comments on commit 41ff103

Please sign in to comment.