aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/generators_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Do not show credentials in generators helpyuuji.yaginuma2017-11-091-1/+2
| | | | | | Since credentials generator is executed via the credentials command and does not need to be executed directly, so it is not necessary to show it in help.
* Run in-app rails commands via fork+load where possibleMatthew Draper2017-09-041-4/+4
| | | | | While this avoids shell argument parsing, we still pass through everything in our stack.
* Preload Rails component gems in railties testsMatthew Draper2017-09-041-0/+1
|
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Do not show hidden namespaces in destroy commnad helpyuuji.yaginuma2017-03-271-0/+3
|
* does not show hidden namespaces in generator's helpyuuji.yaginuma2017-02-241-0/+7
|
* quiet generators log in testyuuji.yaginuma2016-12-221-1/+1
| | | | | | | | | | | | | | | | | This quiet the following log. ``` create app/mailers/notifier_mailer.rb invoke erb create app/views/notifier_mailer identical app/views/layouts/mailer.text.erb identical app/views/layouts/mailer.html.erb create app/views/notifier_mailer/foo.text.erb create app/views/notifier_mailer/foo.html.erb invoke test_unit create test/mailers/notifier_mailer_test.rb create test/mailers/previews/notifier_mailer_preview.rb ```
* `ARGV.shift` before calling Rails generatorsJon Moss2016-12-171-0/+15
| | | | | | Gems like rspec-rails depend on `ARGV` being shifted, and `scaffold` (for example) not being the first item in `ARGV`. This should allow rspec-rails to be passing on Rails master.
* improve error message when include assertions failMichael Grosser2016-09-161-4/+4
| | | | | | assert [1, 3].includes?(2) fails with unhelpful "Asserting failed" message assert_includes [1, 3], 2 fails with "Expected [1, 3] to include 2" which makes it easier to debug and more obvious what went wrong
* Add three new rubocop rulesRafael Mendonça França2016-08-161-2/+2
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* applies new string literal convention in railties/testXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Remove unused boot_rails method and it's usagePrathamesh Sonpatki2016-07-041-1/+0
| | | | | - The `boot_rails` method from abstract_unit.rb is empty after 2abcdfd978fdcd491576a237e8c6b. - So let's remove it and its usage.
* generate mailer views in Rails APIyuuji.yaginuma2016-02-151-0/+10
| | | | | View files is necessary to send mail, it should be generated even Rails API. Fixes #23617
* Add test to show api only apps allow overriding generator optionsSantiago Pastorino2015-06-111-0/+16
|
* config.api_only = true implies config.generators.api_only = trueSantiago Pastorino2015-06-111-1/+1
|
* Api apps scaffold does not generate assetsSantiago Pastorino2015-06-111-0/+1
|
* Api apps scaffold does not generate helpersSantiago Pastorino2015-06-111-0/+1
|
* Api apps scaffold does not generate viewsSantiago Pastorino2015-06-111-0/+1
|
* config.generators.api_only = true set rails api option on generatorsSantiago Pastorino2015-06-111-1/+2
|
* Hide assets, helper, css and js namespaces for api only appsSantiago Pastorino2015-06-111-0/+15
|
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-061-1/+1
| | | | 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'
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-15/+15
|
* Merge pull request #3359 from mrreynolds/datamapper_naming_fixRafael Mendonça França2012-05-191-9/+9
|\ | | | | Fixed DataMapper namings in symbols and constants.
| * Fixed DataMapper namings in symbols and constants.Robert Glaser2011-10-181-9/+9
| |
* | Remove --http.José Valim2012-03-141-28/+0
| |
* | Add test to ensure setting config.generators.http_only actually disables the ↵Carlos Antonio da Silva2012-03-141-1/+14
| | | | | | | | | | | | generator options [Carlos Antonio da Silva & Santiago Pastorino]
* | Allow generator configs from http_only! to be overriden by appCarlos Antonio da Silva2012-03-141-0/+15
| | | | | | | | [Carlos Antonio da Silva & Santiago Pastorino]
* | convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|/
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-061-0/+4
|
* Use load_generators instead.José Valim2011-05-251-4/+2
|
* Fixed failing tests for generators_testArun Agrawal2011-05-251-2/+2
|
* Tidy up generators commits.José Valim2010-11-171-11/+2
|
* Fix generators tests on ruby 1.9Piotr Sarnacki2010-11-171-6/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Do not allow to use plugin_new generator directly, you should use Usage:Piotr Sarnacki2010-11-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rails new APP_PATH [options] Options: -G, [--skip-git] # Skip Git ignores and keeps -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /Users/drogus/.rvm/rubies/ruby-1.8.7-p302/bin/ruby -b, [--builder=BUILDER] # Path to an application builder (can be a filesystem path or URL) [--edge] # Setup the application with Gemfile pointing to Rails repository [--dev] # Setup the application with Gemfile pointing to your Rails checkout [--skip-gemfile] # Don't create a Gemfile -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) # Default: sqlite3 -O, [--skip-active-record] # Skip Active Record files -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) -J, [--skip-prototype] # Skip Prototype files -T, [--skip-test-unit] # Skip Test::Unit files Runtime options: -s, [--skip] # Skip files that already exist -p, [--pretend] # Run but do not make any changes -f, [--force] # Overwrite files that already exist -q, [--quiet] # Supress status output Rails options: -v, [--version] # Show Rails version number and quit -h, [--help] # Show this help message and quit Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify. Example: rails new ~/Code/Ruby/weblog This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going. command
* Allow running `rails plugin new` command inside rails applicationPiotr Sarnacki2010-11-161-0/+6
|
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-1/+1
| | | | method_missing.
* Make config.generators accept string namespaces, you can do now ↵Santiago Pastorino2010-07-211-0/+15
| | | | | | config.generators.test_framework 'rspec' for instance Signed-off-by: José Valim <jose.valim@gmail.com>
* Should call configure! to initiliaze the applicationSantiago Pastorino2010-06-091-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add config.generators.templates to provide alternative paths for template ↵José Valim2010-02-061-11/+4
| | | | lookup.
* Add config.generators.fallbacks.José Valim2010-02-011-1/+12
|
* Move the ActiveRecord generator settings into the RailtieCarl Lerche2010-01-281-1/+1
|
* Test::Unit Railtie Carlhuda2010-01-281-2/+8
|
* Refactor railties test, break huge files in smaller chunks and move ↵José Valim2010-01-261-13/+0
| | | | initializers to application folder.
* Set up subscriber on initialization.José Valim2010-01-131-1/+1
|
* Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rbCarl Lerche2009-12-311-1/+1
|
* tests pass with requiring the frameworks in rails.rbCarlhuda2009-12-231-14/+16
|
* Remove global Rails initializersCarlhuda2009-12-021-9/+17
|
* Configure generator when needed rather than during initializationJeremy Kemper2009-11-031-1/+2
|