aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update test locationsMike Moore2012-10-091-2/+4
| | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
* Add rack-cache to default GemfileGuillermo Iguaran2012-10-011-0/+5
|
* Remove .rb from require sentencesJosé Corcuera Z2012-09-211-1/+1
|
* Remove attributes whitelist tests from AppGenerator testsGuillermo Iguaran2012-09-161-6/+0
|
* Remove all references to attr_accessible/protected and old ↵Guillermo Iguaran2012-09-161-9/+0
| | | | mass_assignment_sanitizers
* change app/plugin generators to be more SCM agnosticDerek Prior2012-09-121-4/+4
| | | | | | | | | | | | | | | | | Users of other SCM's can now generate rails apps that will add the "empty" directories to source control, but will not have a useless .gitignore or mis-named .gitkeep files. * Change `rails new` and `rails plugin new` generators to name the `.gitkeep` as `.keep` in a more SCM-agnostic way. * Change `--skip-git` option to only skip the `.gitignore` file and still generate the `.keep` files. * Add `--skip-keeps` option to skip the `.keep` files. It closes #2800.
* remove some artifacts of dependent_restrict_raises that I missedJon Leighton2012-08-101-1/+0
|
* Remove the dependent_restrict_raises option.Jon Leighton2012-08-101-5/+0
| | | | | | | | | | | | | | | It's not really a good idea to have this as a global config option. We should allow people to specify the behaviour per association. There will now be two new values: * :dependent => :restrict_with_exception implements the current behaviour of :restrict. :restrict itself is deprecated in favour of :restrict_with_exception. * :dependent => :restrict_with_error implements the new behaviour - it adds an error to the owner if there are dependent records present See #4727 for the original discussion of this.
* Revert "The application generator generates `public/humans.txt` with some ↵David Heinemeier Hansson2012-08-071-5/+0
| | | | basic data". I dont consider this something most people is going to want most of the time. If you want to add it in your own app, knock yourself out. But it doesnt belong in Rails imo
* Fix app_generator_test with the changes introduced atRafael Mendonça França2012-05-301-1/+1
| | | | f4d7af67ffc90f2542afa50c7579fc83ea4f45f2
* Remove not used date variable and another test warningCarlos Antonio da Silva2012-05-141-2/+1
|
* Remove assertion on date from humans.txt testsJosé Valim2012-05-141-1/+1
|
* Refactor App Generator TestOscar Del Ben2012-05-131-22/+20
|
* Adding test for humans.txtArun Agrawal2012-05-081-0/+6
|
* Fix build for railties generators Arun Agrawal2012-05-021-1/+1
|
* Merge pull request #5530 from ↵José Valim2012-04-301-0/+7
|\ | | | | | | | | malclocke/add_option_to_skip_index.html_on_rails_generate Added a generator option to skip the public/index.html file
| * Added a generator option to remove the public/index.html file when ↵Ivan Vanderbyl2012-03-211-0/+7
| | | | | | | | | | | | | | generating a new Rails application The option is: -i, [--skip-index-html] # Skip public/index.html file
* | Fix testSantiago Pastorino2012-04-161-2/+2
| |
* | "rails new -h" shows message in rails directoryask2012-04-091-0/+10
| |
* | Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-011-1/+1
|/ | | | | | | | In case `source_roout` is not set, `default_source_root` is used, which includes also `templates` directory. If there is no `templates` directory, `default_source_root` is not available and USAGE will not be displayed. USAGE should be also checked based on default directory excluding `templates`.
* Build fix for app_generator_test.rbArun Agrawal2012-03-181-1/+1
|
* Remove --http.José Valim2012-03-141-33/+0
|
* Do not generate app/views and sprockets entries on http appCarlos Antonio da Silva2012-03-141-1/+16
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Rename http-only app generator option to httpCarlos Antonio da Silva2012-03-141-5/+5
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Remove duplicated tests from shared generatorCarlos Antonio da Silva2012-03-141-1/+2
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate middleware http_only! config when running http only app generatorCarlos Antonio da Silva2012-03-141-0/+6
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add http-only option to Rails app generatorCarlos Antonio da Silva2012-03-141-0/+10
| | | | | | | Change application controller template accordingly, to inherit from ActionController::HTTP and not generate protect_from_forgery call. [Carlos Antonio da Silva & Santiago Pastorino]
* The sprockets railtie was moved to sprockets/rails/railtieGuillermo Iguaran2012-03-131-1/+1
|
* Only add the whitelist_attributes option if ActiveRecord is presentRafael Mendonça França2012-03-041-0/+6
|
* uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-241-5/+0
| | | | the update action of resources
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-0/+5
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Don't run bundle install when passed with --pretend optionkennyj2012-02-011-0/+5
|
* Only add ActiveRecord configuration if it is presentRafael Mendonça França2012-01-311-0/+1
|
* has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-0/+5
|
* Add therubyracer gem commented in default GemfileGuillermo Iguaran2012-01-121-4/+2
|
* Rails::Plugin has goneSantiago Pastorino2012-01-031-1/+0
|
* Get rid of more 1.8.x dead codeJosé Valim2011-12-201-9/+2
|
* Get rid of --old-style-hashJosé Valim2011-12-201-12/+1
|
* Warning removed in testArun Agrawal2011-12-181-1/+1
|
* No need 'abstract_unit' here. It's already in 'generators_test_helper'Arun Agrawal2011-12-181-1/+0
|
* strip whitespace errors from the generated GemfileAaron Patterson2011-12-121-0/+10
|
* Skip assets options in environments files when --skip-sprockets is usedGuillermo Iguaran2011-12-111-0/+7
|
* Merge pull request #3925 from guilleiguaran/extra-test-for-therubyrhinoYehuda Katz2011-12-091-1/+5
|\ | | | | Add test to verify that therubyrhino isn't included when JRuby isn't used
| * Add test to verify that therubyrhino isn't included when JRuby isn't usedGuillermo Iguaran2011-12-091-1/+5
| |
* | Skip assets groups if --skip-sprockets option is givenGuillermo Iguaran2011-12-091-0/+5
|/
* Simplifying test in app/generatorArun Agrawal2011-12-031-3/+3
|
* implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-021-0/+9
|
* avoid absolute path for the rails.png in index.htmlkennyj2011-11-271-0/+1
|
* Added therubyrhino to default Gemfile under JRubyGuillermo Iguaran2011-11-141-0/+7
|
* Merge pull request #3357 from rahul100885/rahul100885_wsVijay Dev2011-10-251-0/+10
|\ | | | | Added test case for postgresql database