Sha256: dc2e57c5e01ad12a91f02a0a0fe33dfa30e54061966ef9978f83aa5a916a1236

Contents?: true

Size: 1.37 KB

Versions: 114

Compression:

Stored size: 1.37 KB

Contents

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

Version data entries

114 entries across 114 versions & 18 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 generators/rspec_controller/USAGE
cavalle-rspec-rails-1.2.2.0.2 generators/rspec_controller/USAGE
cavalle-rspec-rails-1.2.3.1 generators/rspec_controller/USAGE
cavalle-rspec-rails-1.2.4.0.1 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.10 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.1 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.2 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.3 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.4 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.5 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.6 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11.7 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.11 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.12 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.6 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.7 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.8 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.9 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.99.1 generators/rspec_controller/USAGE
dchelimsky-rspec-rails-1.1.99.13 generators/rspec_controller/USAGE