Sha256: 9810337c25dabb1355ee335190ea0bcfc68b37da26069e0b35a1aa9b977bd7a4

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

RSpec spec are normally generated alongside other application components.
For instance, `rails generate model` will also generate an RSpec spec file
for the model.

Note that the generators are there to help you get started, but they are no
substitute for writing your own examples, and they are only guaranteed to work
out of the box for with Rails' defaults.

RSpec generators can also be run independently. For instance,

    rails generate rspec:model widget

will create a new spec file in `spec/models/widget_spec.rb`.

The same generator pattern is available for all specs:

* scaffold
* model
* controller
* helper
* view
* mailer
* observer
* integration

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-rails-2.99.0.beta2 features/Generators.md
rspec-rails-2.14.1 features/Generators.md
rspec-rails-3.0.0.beta1 features/Generators.md
rspec-rails-2.99.0.beta1 features/Generators.md
rspec-rails-2.14.0 features/Generators.md