Sha256: 230231b1a17a3f16564f8cea0282734afbc7ecf3e109ed9edb336b6151127af5

Contents?: true

Size: 648 Bytes

Versions: 22

Compression:

Stored size: 648 Bytes

Contents

* generate_file name, type:Symbol, &block
* generate_dir name, type:Symbol, &block

*generate_file* can take any of the symbols below as a type argument and perform matchings on 
that file in the appropriate location for that type of file in the Rails 3 app.

* :model, :controller, :view, :helper, :observer, :migration
* :javascript, :stylesheet, :initializer, :locale

The following are some convenience matchers that acts as wrappers on generate_file

* generate_model name, &block
* generate_controller name, &block
* generate_helper name, &block
* generate_view name, &block
* generate_observer name, &block
* generate_migration name, &block

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
generator-spec-0.7.8 wiki/file_matchers.textile
generator-spec-0.7.6 wiki/file_matchers.textile
generator-spec-0.7.5 wiki/file_matchers.textile
generator-spec-0.7.4 wiki/file_matchers.textile
generator-spec-0.7.2 wiki/file_matchers.textile
generator-spec-0.7.1 wiki/file_matchers.textile
generator-spec-0.7.0 wiki/file_matchers.textile
generator-spec-0.6.6 wiki/file_matchers.textile
generator-spec-0.6.5 wiki/file_matchers.textile
generator-spec-0.6.4 wiki/file_matchers.textile
generator-spec-0.6.3 wiki/file_matchers.textile
generator-spec-0.5.0 wiki/file_matchers.textile
generator-spec-0.4.8 wiki/file_matchers.textile
generator-spec-0.4.7 wiki/file_matchers.textile
generator-spec-0.4.5 wiki/file_matchers.textile
generator-spec-0.4.4 wiki/file_matchers.textile
generator-spec-0.4.3 wiki/file_matchers.textile
generator-spec-0.4.2 wiki/file_matchers.textile
generator-spec-0.4.1 wiki/file_matchers.textile
generator-spec-0.4.0 wiki/file_matchers.textile