aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* Fix app and actions generators testsPiotr Sarnacki2010-09-252-0/+9
| | | | | | | Normally Rails.application is an instance, but for those tests Rails.application needs to be class. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add namespacing to mailer generatorPiotr Sarnacki2010-09-251-0/+52
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add namespacing for observer generatorPiotr Sarnacki2010-09-251-0/+22
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add namespace for test_unit generatorsPiotr Sarnacki2010-09-251-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Generators fix: properly check if module should be created when creating a ↵Piotr Sarnacki2010-09-251-0/+5
| | | | | | namespaced model Signed-off-by: José Valim <jose.valim@gmail.com>
* got rid of the "ambiguous first argument; put parentheses or even spaces" ↵Jeff Kreeftmeijer2010-09-241-32/+32
| | | | | | warnings in the scaffold_generator tests [#4872 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Generators are not aware of namespace of isolated engines and applicationsPiotr Sarnacki2010-09-242-1/+126
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensures the app generator generates the correct @app_name. [#5434 ↵Fred Wu2010-09-241-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove existing migration when using 'rails generate model' with --force ↵David Trasbo2010-09-181-0/+9
| | | | | | [#5526 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove deprecation warnings in railtiesCarlos Antonio da Silva2010-09-061-37/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add two integration tests for GeneratedAttribute missing type error. [#5461 ↵rohit2010-09-022-0/+12
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Failing test for GeneratedAttribute [#5461 state:open]rohit2010-09-021-0/+12
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed the session name generated by the app_generator. Also refactored the ↵Fred Wu2010-08-281-6/+21
| | | | | | corresponding test suites to be cleaner. [#5434 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix test of generated Gemfile with mysql selected as DB driverKrekoten' Marjan2010-08-241-1/+1
| | | | | | [#5435 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-3/+3
| | | | 's/[ \t]*$//' -i {} \;)
* Stub is_a? not instance_of? hereSantiago Pastorino2010-08-031-1/+1
|
* Improved how AppGenerator generates the application name. It now detects the ↵Fred Wu2010-08-021-0/+24
| | | | | | | | current app name whenever possible. This means that renaming the residing directory will not effect the app name generated by AppGenerator. [#5225 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Failing test to check for route file corruption if legacy map parameter is ↵rohit2010-08-021-0/+15
| | | | used. [#5263 state:open]
* fix for rails app generator when using --pretend optionSteve Agalloco2010-07-301-0/+6
| | | | | | [#5245 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Update to latest thor.José Valim2010-07-261-4/+4
|
* application generation: --skip-testunit and --skip-activerecord renamed to ↵Xavier Noria2010-07-251-6/+6
| | | | | | | | --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.
* Makes test use the new config.action_view.javascript_expansions[:defaults] ↵Santiago Pastorino2010-07-171-1/+1
| | | | initialization syntax
* Adds application.js when app is generated with -J and clear ↵Santiago Pastorino2010-07-171-1/+6
| | | | javascript_expansions[:defaults]
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-242-22/+0
| | | | | | | | It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name. [#4863 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* renames load_(once_)paths to autoload_(once_)paths in dependencies and configXavier Noria2010-06-241-3/+3
|
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-231-0/+106
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add test for migration generator with name not starting with add or remove. ↵rohit2010-06-201-0/+15
| | | | | | [#4835 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-201-0/+10
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Tidy up generators based on latest change on AM.José Valim2010-06-131-2/+2
|
* Test create mailers folder when starting a new appDamien Mathieu2010-06-121-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* layout 'application' is not anymore on application_controllerSantiago Pastorino2010-06-101-2/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 ↵Jeff Kreeftmeijer2010-06-101-10/+81
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix generator test broken when rails new was added.José Valim2010-06-081-3/+1
|
* Still copy application configuration to generator even if they are required ↵José Valim2010-06-031-2/+5
| | | | earlier. Also tidy up the guide a little bit.
* Remove the laziness from the middleware stack.José Valim2010-06-032-2/+2
|
* Removing Metal from Rails 3.wycats2010-06-031-17/+0
| | | | | | | | | | | | | | | | | | | | | If you have existing Metals, you have a few options: * if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go * if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself. For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack. Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed.
* Tests for new reserved words [#4602 state:resolved]Simon Jefford2010-05-161-2/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename assert_attribute_type to asser_field_type.José Valim2010-05-161-7/+7
|
* Added assert_attribute_type to clean up GeneratedAttributeTest [#2377 ↵Jeff Kreeftmeijer2010-05-161-0/+40
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Bundler deprecated options in Gemfile with application template using method ↵Adrian Sanchez2010-05-151-2/+12
| | | | | | "gem" [#4534 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Expand paths to app builders relative to the working directoryCarl Lerche2010-05-061-0/+8
|
* Provide a mechanism for overriding the entire generator via a class that ↵Carlhuda2010-04-301-38/+96
| | | | handles the individual elements of generating a new Rails application
* Set up app generator class to make it easier to for alt-stacks to override ↵Carlhuda2010-04-301-0/+4
| | | | targeted areas
* Update generators to use thor 0.13.6 with simpler source_root handling.José Valim2010-04-301-1/+1
|
* Reorganize the mailer generator a bit.José Valim2010-04-301-1/+1
|
* Move ActionMailer generator to AMCarlhuda2010-04-291-1/+2
|
* Update thor dependency to 0.13.5José Valim2010-04-291-1/+1
|
* warn user if options are given before application name [#3435 state:resolved]Ravinder Singh2010-04-291-0/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make the migration generator handle pre-existing migrations with the same ↵Phil Smith2010-04-191-0/+13
| | | | | | | | | | timestamp. In the event a migration already exists with that number, the new migration's timestamp will be incremented by 1. [#4412 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Generate module file for namespaced models [#4230 state:resolved]Andrew White2010-04-121-0/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>