aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/initializer_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Get initializer_test.rb to pass with the new initializer.Yehuda Katz + Carl Lerche2009-06-231-11/+11
|
* Started making progress on implementing a new initializer.Yehuda Katz + Carl Lerche2009-06-231-28/+27
| | | | | Class.any_instance.expects(:require).raises(LoadError) ... w0t
* Fix initializer i18n path testJeremy Kemper2009-06-011-0/+1
|
* ensure initialize_database_middleware doesn't use ActionController if ↵calavera2009-05-271-4/+19
| | | | | | action_controller framework is not enabled [#2680 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Bring abstract_controller up to date with rails/masterCarl Lerche & Yehuda Katz2009-04-131-205/+275
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved all the conflicts since 2.3.0 -> HEAD. Following is a list of commits that could not be applied cleanly or are obviated with the abstract_controller refactor. They all need to be revisited to ensure that fixes made in 2.3 do not reappear in 3.0: 2259ecf368e6a6715966f69216e3ee86bf1a82a7 AR not available * This will be reimplemented with ActionORM or equivalent 06182ea02e92afad579998aa80144588e8865ac3 implicitly rendering a js response should not use the default layout [#1844 state:resolved] * This will be handled generically 893e9eb99504705419ad6edac14d00e71cef5f12 Improve view rendering performance in development mode and reinstate template recompiling in production [#1909 state:resolved] * We will need to reimplement rails-dev-boost on top of the refactor; the changes here are very implementation specific and cannot be cleanly applied. The following commits are implicated: 199e750d46c04970b5e7684998d09405648ecbd4 3942cb406e1d5db0ac00e03153809cc8dc4cc4db f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690 e3b166aab37ddc2fbab030b146eb61713b91bf55 ae9f258e03c9fd5088da12c1c6cd216cc89a01f7 44423126c6f6133a1d9cf1d0832b527e8711d40f 0cb020b4d6d838025859bd60fb8151c8e21b8e84 workaround for picking layouts based on wrong view_paths [#1974 state:resolved] * The specifics of this commit no longer apply. Since it is a two-line commit, we will reimplement this change. 8c5cc66a831aadb159f3daaffa4208064c30af0e make action_controller/layouts pick templates from the current instance's view_paths instead of the class view_paths [#1974 state:resolved] * This does not apply at all. It should be trivial to apply the feature to the reimplemented ActionController::Base. 87e8b162463f13bd50d27398f020769460a770e3 fix HTML fallback for explicit templates [#2052 state:resolved] * There were a number of patches related to this that simply compounded each other. Basically none of them apply cleanly, and the underlying issue needs to be revisited. After discussing the underlying problem with Koz, we will defer these fixes for further discussion.
| * Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-1/+1
| | | | | | | | [#1617 state:resolved]
| * Test view path loading from the initializer.Manfred Stienstra2009-02-251-2/+26
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Test database middleware loading from the initializer.Manfred Stienstra2009-02-251-9/+48
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * load plugin view_paths to action_mailer view_paths and make action_mailer ↵Sven Fuchs2009-02-221-2/+3
| | | | | | | | | | | | use them [#2031 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Fix loader's LoadError exception message to mention missing plugins and omit ↵Oshoma Momoh2009-02-131-0/+20
| | | | | | | | | | | | | | | | | | loaded plugins. Prior to this change the LoadError message listed all plugins if any one of them was missing. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1921 state:committed]
| * Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-212/+204
|/
* fix failing railties testJoshua Peek2008-12-011-2/+2
|
* Changed Rails.root to return a Pathname object (allows for ↵David Heinemeier Hansson2008-11-301-2/+2
| | | | Rails.root.join("app", "controllers") => "#{RAILS_ROOT}/app/controllers") [#1482]
* Enhanced Rails.root to take parameters that'll be join with the root, like ↵David Heinemeier Hansson2008-11-291-0/+10
| | | | Rails.root('app', 'controllers') => File.join(Rails.root, 'app', 'controllers') [#1482 state:committed] (Damian Janowski)
* Added that config/routes.rb files in engine plugins are automatically loaded ↵David Heinemeier Hansson2008-11-261-0/+1
| | | | (and reloaded when they change in dev mode) [DHH]
* Added app/[models|controllers|helpers] to the load path for plugins that has ↵David Heinemeier Hansson2008-11-261-4/+4
| | | | an app directory (go engines ;)) [DHH]
* Explicitly require action_view to bring in its i18n load pathJeremy Kemper2008-11-241-0/+3
|
* Reflect default locale change from en-US to enJeremy Kemper2008-11-191-3/+3
|
* Added config.i18n settings gatherer to config/environment, auto-loading of ↵David Heinemeier Hansson2008-11-181-2/+47
| | | | all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
* Initializer to sort files before eager loading. [#859 state:resolved]Tom Ward2008-08-221-0/+18
| | | | | | | | Changed Rails::Initializer to sort files before eager loading them. This ensures that any files in a parent directory will be loaded before files in a subdirectory of the 'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Check for ActionMailer and ActionController before attempting to eager load ↵Sam Granieri2008-07-241-1/+20
| | | | | | their view paths Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Make plugins initialize also from rails/init.rb to ensure consistency with ↵Jacek Becela2008-06-081-3/+3
| | | | | | gems used as plugins [#272 state:resolved]
* Wrap Initializer after_initialize inside mocha block.Joshua Peek2008-06-071-48/+48
|
* Fixed initializer tests by stubbing out gems dependencies check.Joshua Peek2008-06-021-16/+18
|
* Improving railties test coverage. Closes #11496 [miloops]Jeremy Kemper2008-04-011-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. ↵Rick Olson2007-11-081-0/+81
| | | | | | Closes #9795 [lazyatom] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tidy up framework initialization code to ensure that it doesn't add folders ↵Michael Koziarski2007-10-041-0/+53
| | | | | | | | | to the load path that it doesn't intend to require. Work around mongrel swallowing LoadErrors to ensure that users get more helpful errors if active_resource is required but not missing. [mislav] Closes #9743 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix test (closes #9618)David Heinemeier Hansson2007-09-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support multiple config.after_initialize blocks so plugins and apps can more ↵Jeremy Kemper2007-09-181-7/+69
| | | | | | easily cooperate. Closes #9582. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Canonicalize configuration.root_path and replace RAILS_ROOT.Jeremy Kemper2007-03-291-15/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New configuration option config.plugin_paths which may be a single path like ↵Jeremy Kemper2005-11-071-12/+9
| | | | | | the default 'vendor/plugins' or an array of paths: ['vendor/plugins', 'lib/plugins']. Plugins are discovered in nested paths, so you can organize your plugins directory as you like. Refactor load_plugin from load_plugins. Simplify initializer unit test. Closes #2757. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Constants set in the development/test/production environment file are set in ↵Jamis Buck2005-10-231-0/+36
Object git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de