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

- old
+ new

@@ -27,19 +27,20 @@ * `jspec` command-line utility for auto-running specs, and initializing project templates * Proxy or 'Spy' assertions * Shared behaviors * Profiling * Rails Integration (http://github.com/bhauman/jspec-rails) -* Tiny (15 kb compressed, 1600-ish LOC) +* Tiny (15 kb compressed, 1300-ish LOC) == Installation Simply download JSpec and include JSpec.css and JSpec.js in your markup. Head over to the downloads section on Github, clone this public repo, or add JSpec as a git submodule with in your project. Alternatively JSpec is also available as a Ruby Gem (though this is not required), which also provides the `jspec` executable. To install execute: + $ gem sources -a http://gems.github.com (if you have not previously done so) $ sudo gem install visionmedia-jspec At which point you may: $ jspec init myproject @@ -137,11 +138,11 @@ - be_true == true - be_false == false - be_type be type of x - be_greater_than > - be_less_than < - - throw_error should throw an error, optionally supply the error string for comparison + - throw_error should throw an error, optionally supply the error string or regexp for message comparison - have object should have n of property (person.should.have(2, 'pets')) - have_at_least object should have at least n of property - have_at_most object should have a maximum n of property - have_within object should have within n..n of property (person.should.have_within(1..3, 'pets') - have_length length of n @@ -461,9 +462,10 @@ Run with: $ jspec run --server == 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 * Get the TextMate bundle at https://github.com/visionmedia/jspec.tmbundle/tree * For more information consult the JSpec source code documentation or visit http://visionmedia.github.com/jspec == License