Sha256: 3ec677090d39124280b1a7ea41349ddb28077a1c162f740e80fcbf160f5b7679

Contents?: true

Size: 688 Bytes

Versions: 128

Compression:

Stored size: 688 Bytes

Contents

Description:
    The rspec_model generator creates stubs for a new model.

    The generator takes a model name as its argument.  The model name may be
    given in CamelCase or under_score and should not be suffixed with 'Model'.

    The generator creates a model class in app/models, an RSpec spec in
    spec/models, database fixtures in spec/fixtures/plural_name.yml, and a migration
    in db/migrate.

Example:
    ./script/generate rspec_model Account

    This will create an Account model:
        Model:      app/models/account.rb
        Spec:       spec/models/account_spec.rb
        Fixtures:   spec/fixtures/accounts.yml
        Migration:  db/migrate/XXX_add_accounts.rb

Version data entries

128 entries across 128 versions & 19 rubygems

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