aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/paths_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* improve error message when include assertions failMichael Grosser2016-09-161-3/+3
| | | | | | 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
* 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.
* Revert "Deprecate the `eager_load_paths` configuration"Andrew White2013-02-191-5/+5
| | | | | | | | | | | Because of the possibility of lib being unintentionally eager loaded it's been agreed that we'll leave autoload paths and eager load paths separate for Rails 4.0. This reverts commit 0757b3388ffe4f44b60de950d40e18ef05055931. Conflicts: railties/CHANGELOG.md
* Deprecate the `eager_load_paths` configurationAndrew White2013-01-241-5/+5
| | | | | | | | | | Since the default in Rails 4.0 is to run in 'threadsafe' mode we need to eager load all of the paths in `autoload_paths` so we alias `eager_load_paths` to it. This may have unintended consequences if you have added 'lib' to `autoload_paths` such as loading unneeded code or code intended only for development and/or test environments. If this applies to your application you should thoroughly check what is being eager loaded.
* Revert "Add test to deprecation of Path#children"Carlos Antonio da Silva2012-12-191-6/+0
| | | | | | | | | | This reverts commit 29b1dc273e1ad6b9e13bf48fe3f12047850f9554. Conflicts: railties/test/application/paths_test.rb Reason: since 7f96e4317e1354852e9600becb16662de3c17691 was reverted, Path#children is no longer deprecated.
* Revert "Merge pull request #7587 from elia/fix-too-eager-loading"Rafael Mendonça França2012-12-181-3/+0
| | | | | | | | | | This reverts commit 3663057518eb9acf9b1e72f47dcb07038e6b7368. REASON: This caused a regression that add app folder in the eager load path. See #8146 for more information. Conflicts: railties/CHANGELOG.md
* Fix deprecation message in test for Path#childrenCarlos Antonio da Silva2012-10-291-1/+1
|
* Add test to deprecation of Path#childrenRafael Mendonça França2012-10-291-0/+6
|
* Merge pull request #7587 from elia/fix-too-eager-loadingRafael Mendonça França2012-10-291-0/+3
| | | | | | Should not eager_load app/assets Conflicts: railties/CHANGELOG.md
* Revert "Allow loading external route files from the router"José Valim2012-06-291-2/+0
| | | | | | | | | | | | | | This reverts commit 6acebb38bc0637bc05c19d87f8767f16ce79189b. Usage of this feature did not reveal any improvement in existing apps. Conflicts: actionpack/lib/action_dispatch/routing/mapper.rb guides/source/routing.textile railties/lib/rails/engine.rb railties/lib/rails/paths.rb railties/test/paths_test.rb
* Allow loading external route files from the routerJose and Yehuda2012-04-251-0/+2
| | | | | | | | | This feature enables the ability to load an external routes file from the router via: draw :filename External routes files go in +config/routes+. This feature works in both engines and applications.
* Remove the dependent_restrict_raises configuration if activerecord isRafael Mendonça França2012-02-011-1/+0
| | | | not preset
* convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|
* Rails::Plugin has goneSantiago Pastorino2012-01-031-1/+0
|
* assets.cache_store now defaults to filesystem. You will want to share ↵José Valim2011-07-121-1/+0
| | | | tmp/assets_cache between deploys.
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-061-0/+4
|
* Removing deprecated config.paths.app.controller APIGuillermo Iguaran2011-05-241-1/+1
|
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-14/+14
| | | | method_missing.
* Removing Metal from Rails 3. wycats2010-05-291-2/+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.
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-291-2/+3
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Remove app/views from the load paths [#4226 state:resolved]José Valim2010-04-051-0/+1
|
* Remove invalid builtin tests since we aren't adding that dir to theJoshua Peek2010-03-201-18/+0
| | | | load path anymore
* Add mailers to paths in case someone wants to access it directly and ensures ↵José Valim2010-03-061-3/+4
| | | | deep nesting works in controllers.
* Change generated code to replace faulty commentCarlhuda2010-03-041-1/+1
|
* Fix Sam Ruby's tests and deprecation warningsCarlhuda2010-03-041-2/+2
|
* Refactor railties test, break huge files in smaller chunks and move ↵José Valim2010-01-261-0/+99
initializers to application folder.