From 41ff10346f0ffc42b4a6608d3c54083425c9bbed Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 19 Feb 2009 12:32:35 -0800 Subject: [PATCH] - Renamed have_length_of to have_length --- README.rdoc | 2 +- lib/jspec.js | 2 +- spec/spec.core.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index a76a4146..f54673f5 100644 --- a/README.rdoc +++ b/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 diff --git a/lib/jspec.js b/lib/jspec.js index 095265ed..410972c5 100644 --- a/lib/jspec.js +++ b/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) { diff --git a/spec/spec.core.js b/spec/spec.core.js index 7618c77d..e5c109ae 100644 --- a/spec/spec.core.js +++ b/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'