README.rdoc in visionmedia-jspec-2.2.0 vs README.rdoc in visionmedia-jspec-2.2.1

- old
+ new

@@ -132,11 +132,11 @@ - be_a, be_an have constructor of x - be_an_instance_of instanceof x - be_at_least >= - be_at_most <= - be_null == null - - be_empty length of 0 + - be_empty length < 0 or {} - be_true == true - be_false == false - be_type be type of x - be_greater_than > - be_less_than < @@ -204,11 +204,10 @@ == Helpers * Core - - wait delay execution of a spec for the duration set (async support) - an_instance_of used in conjunction with the 'receive' matcher * jQuery - sandbox used to generate new DOM sandbox, using jQuery object @@ -245,23 +244,10 @@ end end NOTE: both User and Administrator's before hooks implement the 'user' variable -== Async Support Using wait() - -When using jQuery with JSpec all requests are switched to sync, allowing specs -to run naturally, however when testing functionality using setTimeout, setInterval etc -JSpec supplies the wait() utility to delay a spec from running: - - it 'should wait for n milliseconds' - wait(2, 'seconds') - setTimeout(function(){ - true.should.be true - }, 1500) - end - == Hooks Currently the following hooks are supported, and may be utilized any number of times as they are simply pushed to a stack. So for instance you may have two before_each blocks within the same scope, they will both run, but this can help keep your specs readable. @@ -459,9 +445,14 @@ Initialize project with: $ jspec init myproject Run with: $ jspec run --server + +== Known Issues + +* Tabs may cause a parse error. To prevent this use 'soft tabs' (setting in your IDE/Editor) + or use JSpec's grammar-less alternative (mentioned above). == More Information * Featured article in JSMag: http://www.jsmag.com/main.issues.description/id=21/ * Syntax comparison with other frameworks http://gist.github.com/92283