README.rdoc in visionmedia-jspec-2.5.1 vs README.rdoc in visionmedia-jspec-2.6.0
- old
+ new
@@ -29,11 +29,11 @@
* `jspec` command-line utility for auto-running specs, and initializing project templates
* Proxy or 'Spy' assertions
* Method Stubbing
* Shared behaviors
* Profiling
-* Rails Integration (http://github.com/bhauman/jspec-rails)
+* Ruby on Rails Integration
* Tiny (15 kb compressed, 1300-ish LOC)
== Installation
Simply download JSpec and include JSpec.css and JSpec.js in your markup.
@@ -141,10 +141,11 @@
- be_true == true
- be_false == false
- be_type be type of x
- be_greater_than >
- be_less_than <
+ - be_undefined check if variable passed is undefined
- 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')
@@ -556,9 +557,32 @@
Initialize project with:
$ jspec init myproject
Run with:
$ jspec run --server
+
+
+== Ruby on Rails
+
+No additional gems are required for JSpec to work with rails, although
+http://github.com/bhauman/jspec-rails has been created by 'bhauman'. JSpec
+supports Rails out of the box, simply execute:
+
+ $ jspec init --rails
+
+Then while still in the root directory of your Rails project, run the following
+command which will bind to, and refresh your browsers automatically when any changes
+are made to ./public/javascripts/*.js or ./jspec/*.js
+
+ $ jspec
+
+Or just like regular JSpec applications, run once:
+
+ $ jspec run
+
+Or run via the terminal using Rhino:
+
+ $ jspec run --rhino
== 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).