aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove --http.José Valim2012-03-141-51/+0
|
* Generate special controller and functional test templates for http appsCarlos Antonio da Silva2012-03-141-1/+10
| | | | | | | | | | | | The main goal is to not generate the format.html block in scaffold controller, and to generate a different functional test as we don't rely on redirects anymore, we should test for http responses. In addition to that, the :edit action is removed from the http controller and the edit route is not generated by default, as they usually do not make sense in this scenario. [Carlos Antonio da Silva & Santiago Pastorino]
* Disable template, helper and assets options when using http_only!Carlos Antonio da Silva2012-03-141-0/+18
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Create generators http_only! setup and hide some common namespaces for nowCarlos Antonio da Silva2012-03-141-0/+24
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add convenience method to hide a generator from the available onesCarlos Antonio da Silva2012-02-031-1/+7
| | | | | | It is usually useful to be able to hide a generator when running rails generate command. Such generators might be used only to dry up generators code and shouldn't be available to end users.
* treat USAGE as an ERB templateColin MacKenzie IV2011-11-021-0/+6
|
* Removed tests for rescue branch for Rails 2.x compatibilityAlexey Gaziev2011-06-201-6/+0
|
* load_generators_from_railties was removed, remove failing ↵Guillermo Iguaran2011-05-241-7/+0
| | | | test_load_generators_from_railties
* be sure to parenthesize the arguments when the first one is a RegExp literalAkira Matsuda2011-05-181-15/+15
| | | | | | this fixes: "warning: ambiguous first argument; put parentheses or even spaces" because: you need this to tell the parser that you're not calling :/ method (division) details (Japanese!): http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-dev/42445?42370-43277
* Allow generators nested in more than one levelSantiago Pastorino2011-01-121-0/+8
|
* Make sure that generator's default banner is showing its namespacePrem Sichanugrist2011-01-011-0/+10
| | | | This will make `rails g rspec:install --help` shows "rails generate rspec:install [options]" and not "rails generate install [options]"
* Tidy up generators commits.José Valim2010-11-171-0/+6
|
* application generation: --skip-testunit and --skip-activerecord renamed to ↵Xavier Noria2010-07-251-1/+1
| | | | | | | | --skip-test-unit and --skip-active-record respectively Reason is their proper spellings are "Test::Unit" and "Active Record". Option names and descriptions have been revised, as well as some method names and minor details here and there.
* Update generators test.José Valim2010-05-151-12/+1
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-2/+2
| | | | former since it's less obstrusive.
* Prettify generators description whenever using the default stack [#4143 ↵José Valim2010-03-121-2/+16
| | | | status:resolved]
* Add autoload to generators modules and fix failing test.José Valim2010-02-261-4/+4
|
* Fix dangling klass referenceJeremy Kemper2010-02-251-1/+1
|
* Fix test on 1.8.8. Broken by inherited hook now running before Class.new block.Jeremy Kemper2010-02-251-5/+6
|
* Ensure app does not show up in generators.José Valim2010-01-261-0/+1
|
* Give higher priority to rails generators.José Valim2010-01-211-0/+8
|
* Allow railties to specify generators paths.José Valim2010-01-191-0/+7
|
* Get generators tests running on Ruby 1.9.1José Valim2010-01-191-1/+2
|
* Improve generators help.José Valim2010-01-181-8/+9
|
* More cleaning up on rails generators load path.José Valim2010-01-181-62/+45
|
* Automatically remove :generators: from namespaces.José Valim2010-01-181-6/+6
|
* Ensure generators can be invoked by their shortcut and remove attr_reader tasks.José Valim2010-01-181-2/+2
|
* Use regexp in lookups instead of traversing namespaces. This removes the ↵José Valim2010-01-031-8/+9
| | | | need of special cases.
* Ensure generator fallbacks work even when a context is given.José Valim2009-11-231-0/+7
| | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Contortions to work around brittle naming dependencyJeremy Kemper2009-11-091-6/+5
|
* Ruby 1.9.2: work around inherited hook being called before yielding to blockJeremy Kemper2009-11-091-7/+5
|
* Fix generators tests that expect a class nameJeremy Kemper2009-11-051-1/+1
|
* Avoid duplicated names on help description and show proper error message if ↵José Valim2009-11-031-2/+9
| | | | | | trying to load a Rails 2.x generator. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure that generators can be invoked from any directory.José Valim2009-11-021-1/+1
| | | | Signed-off-by: Engine Yard <engineyard@Engine-Yards-MacBook-Pro.local>
* Use Rails.root in railties testsJoshua Peek2009-10-181-3/+3
|
* Remove config.gem in favor of using the bundler. This makes config/boot.rb ↵Carl Lerche2009-10-161-1/+2
| | | | | | obsolete. The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-2/+2
|
* Use less strict rules in generators lookup, so people can lay their ↵José Valim2009-08-101-0/+19
| | | | generators wherever they want.
* Ensure that not namespaced generators also load RAILS_ROOT/lib/templates files.José Valim2009-07-281-0/+5
|
* Ensure that developers options are overwritten by user options.José Valim2009-07-281-0/+14
|
* Allow nested and multiple fallbacks for generators.José Valim2009-07-211-5/+11
|
* Implemented generaators fallbacks.José Valim2009-07-161-0/+14
|
* Added source_paths to rails generators. If a template is added to ↵José Valim2009-07-151-1/+19
| | | | RAILS_ROOT/lib/templates/base/generator it will be used. For example, to customize edit.html.erb template on scaffold, just add a customized copy at RAILS_ROOT/lib/templates/erb/scaffold.
* Load generators from user home and show a error message if they can't be loaded.José Valim2009-07-041-1/+7
|
* Search for generators on vendorized plugins and gems.José Valim2009-07-041-1/+7
|
* Add some tests for no_color! behavior.José Valim2009-07-031-4/+11
|
* More tests for rails generators and lookup.José Valim2009-07-031-0/+80