rails/railties/test/application
yuuji.yaginuma 6fec4c3a0a Add skip-collision-check option to generator
Until Rails 5.2, generators can run same name multi times without destroying.
But Rails 6.0(with Zeitwerk) can't this. In Rails 6.0, an error occurs
due to class name collision check.

The check uses `const_defined?`, which assumes that the autoload object
is also defined.
https://ruby-doc.org/core-2.6.3/Module.html#method-i-const_defined-3F

It did not work until Rails 5.2, but Zeitwerk seems to be able to
correctly check this against the application's code.

However, this is a little inconvenient if want to run the generator
again like mistake an attribute name(need to run `destoy` before).

In order to solve this, this PR adds an option to skip the collision check.
With this option, you can overwrite files just as did until Rails 5.2.
2019-07-05 18:55:47 +09:00
..
configuration Use respond_to test helpers 2018-01-25 23:32:58 -05:00
initializers Don't drop_table before schema cache tests 2019-06-13 13:43:26 +09:00
middleware Merge pull request #36196 from st0012/fix-29947 2019-05-07 15:14:14 -04:00
rack Log the remote IP addr of clients behind a proxy 2018-07-31 20:45:37 +05:30
rake Load initial database.yml once, and warn if we can't create tasks 2019-06-27 09:54:25 -04:00
asset_debugging_test.rb url -> URL where apt except inside actionpack/ 2019-04-01 22:56:35 +05:30
assets_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
bin_setup_test.rb Make bin/setup test pass even if the database does not exist 2019-06-30 10:15:26 +09:00
configuration_test.rb Make ActionDispatch::Response#content_type behavior configurable 2019-06-21 07:17:14 +09:00
console_test.rb Add config.disable_sandbox option to Rails console 2019-03-23 19:31:03 +09:00
content_security_policy_test.rb Add the ability to set the CSP nonce only to the specified directives 2019-06-22 12:44:37 +09:00
credentials_test.rb Restructure credentials after environment overrides. 2019-01-14 20:13:00 +01:00
current_attributes_integration_test.rb Don't need the layout here 2017-09-04 05:44:45 +09:30
dbconsole_test.rb Use correct variable 2018-09-11 07:06:30 +09:00
generators_test.rb Add skip-collision-check option to generator 2019-07-05 18:55:47 +09:00
help_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
integration_test_case_test.rb rails new runs rails active_storage:install 2017-11-06 21:29:14 +00:00
loading_test.rb Move SchemaMigration to migration_context 2019-06-14 11:15:08 -04:00
mailer_previews_test.rb [Rails::MailersController] Do not leak I18n global setting changes 2019-04-16 18:54:51 +00:00
middleware_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
multiple_applications_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
paths_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
per_request_digest_cache_test.rb Include ActiveSupport::Testing::MethodCallAssertions in railties/test/isolation/abstract_unit.rb 2018-06-09 00:00:28 +03:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
rendering_test.rb Fix RenderingTest in railtie 2018-04-04 06:12:24 +09:00
routing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
runner_test.rb Properly expand the environment's name in all commands 2019-03-15 07:43:10 +09:00
server_test.rb Fix server restart test on Puma 3.12.1 2019-03-22 07:49:38 +09:00
test_runner_test.rb Fail parallel tests if workers exit early 2019-05-30 21:34:47 -07:00
test_test.rb [ci skip] Minor documentation fixes for consistency 2019-03-09 12:15:00 +05:30
url_generation_test.rb Fix secret_key_base for Railties 2019-03-13 16:41:29 -04:00
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
zeitwerk_integration_test.rb upgrades Zeitwerk to 2.1.4 2019-04-23 01:18:21 +02:00