Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.

This commit is contained in:
Luke Melia 2008-06-18 02:57:57 -04:00
parent 0600756bbf
commit 0f7d6f7a1d
602 changed files with 47788 additions and 29 deletions

View file

@ -0,0 +1,33 @@
Description:
The rspec_controller generator creates stub specs and files for a new
controller and its views.
The generator takes a controller name and a list of views as arguments.
The controller name may be given in CamelCase or under_score and should
not be suffixed with 'Controller'. To create a controller within a
module, specify the controller name as 'module/controller'.
The generator creates stubs for a controller (and spec), a view (and spec)
for each view in the argument list, plus a helper.
Example:
./script/generate rspec_controller dog bark fetch
...
create spec/controllers/dog_controller_spec.rb
create app/controllers/dog_controller.rb
create app/helpers/dog_helper.rb
create spec/views/dog/bark_view_spec.rb
create app/views/dog/bark.rhtml
create spec/views/dog/fetch_view_spec.rb
create app/views/dog/fetch.rhtml
Modules Example:
./script/generate rspec_controller 'pets/dog' bark fetch
...
create spec/controllers/pets/dog_controller_spec.rb
create app/controllers/pets/dog_controller.rb
create app/helpers/pets/dog_helper.rb
create spec/views/pets/dog/bark_view_spec.rb
create app/views/pets/dog/bark.rhtml
create spec/views/pets/dog/fetch_view_spec.rb
create app/views/pets/dog/fetch.rhtml