aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9401 from sikachu/master-remove-builder-optionRafael Mendonça França2013-02-241-25/+0
|\ | | | | Remove `--builder` option from `rails` command
| * Remove `--builder` option from `rails` commandPrem Sichanugrist2013-02-241-25/+0
| | | | | | | | | | | | | | Ability to use a custom builder by passing `--builder` (or `-b`) has been removed. Consider using application template instead. See this guide for more detail: http://guides.rubyonrails.org/rails_application_templates.html
* | remove AR auto-explain (config.auto_explain_threshold_in_seconds)Yves Senn2013-02-241-9/+0
|/ | | | | | | | | | We discussed that the auto explain feature is rarely used. This PR removes only the automatic explain. You can still display the explain output for any given relation using `ActiveRecord::Relation#explain`. As a side-effect this should also fix the connection problem during asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie` forced a connection.
* --no-rc in the railties testsAkira Matsuda2013-02-011-1/+1
| | | | so that the tester's local .railsrc file does not affect the test results
* Fixes improper database name when a '.' is included while creating a new railsJeremy W. Rowe2013-01-161-0/+5
| | | | | | application. EG: `rails new something.awesome.com` Conflicts: railties/CHANGELOG.md
* remove performance tests from the default stackYves Senn2013-01-101-3/+0
|
* doc/README_FOR_APP is no longer generatedXavier Noria2013-01-081-1/+0
|
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-061-1/+3
| | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* Make sure assets is disable when --skip-sprockets is usedRafael Mendonça França2013-01-051-1/+2
|
* config.assets.enabled is now true by defaultDavid Heinemeier Hansson2013-01-051-1/+0
|
* update concerned testsFrancesco Rodriguez2012-12-181-0/+2
|
* Use Rails to Render Default Index Pageschneems2012-12-101-8/+0
| | | | | | | | | | | | | | | This is an alternative implementation to #7771 thanks to the advice of @spastorino Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion. This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required. In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated. The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one). cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik ATP Railties and Actionpack.
* Add encrypted cookie storeSantiago Pastorino2012-11-031-1/+1
|
* Fix the app_generator and plugin_new testsRafael Mendonça França2012-10-181-1/+1
|
* Switch to new sprockets-rails pluginJoshua Peek2012-10-151-1/+2
|
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-3/+3
|
* No need to test for rack-cache present in GemfileArun Agrawal2012-10-111-5/+0
| | | | | | as it's removed here 1fc795468525d8622cdca474a54c8310a514aa46
* 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
|