aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/initializers
Commit message (Collapse)AuthorAgeFilesLines
* Fix failing test case when no database.ymlPrem Sichanugrist2013-02-241-4/+11
|
* fixed support for DATABASE_URL for rake db tasksGrace Liu2012-10-291-0/+36
| | | | | | | | | | | | | | | | Backport for #7521 - added tests to confirm establish_connection uses DATABASE_URL and Rails.env correctly even when no arguments are passed in. - updated rake db tasks to support DATABASE_URL, and added tests to confirm correct behavior for these rake tasks. (Removed establish_connection call from some tasks since in those cases the :environment task already made sure the function would be called) - updated Resolver so that when it resolves the database url, it removes hash values with empty strings from the config spec (e.g. to support connection to postgresql when no username is specified). - updated ResolverTest to use current_adapter? to check the type of the current adapter.
* log which config format AR uses to connect withTerence Lee2012-04-031-0/+19
|
* test initializer logic for DATABASE_URL env varTerence Lee2012-04-031-0/+43
|
* Wait a full second so we have time for changes to propagateJosé Valim2011-12-161-0/+3
|
* Fix testcase an error on ruby 1.8.x.kennyj2011-12-091-2/+3
| | | | | | In Ruby 1.8.x, config.encoding sets $KCODE. Therefore, the possible values are UTF8, SJIS, or EUC. And, if we set SJIS, we'll has the error. Because some rails sources are written in utf-8 encoding.
* Assign config.encoding to AD::Response.default_charset at the initialization ↵kennyj2011-12-071-0/+6
| | | | time.
* Make i18n tests more robust.José Valim2011-06-121-3/+3
|
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-067-7/+23
|
* framework_test.rb also dependent on RAILS_ENV=developmentArun Agrawal2011-06-061-0/+6
|
* load_path_test.rb is also dependent on RAILS_ENV=developmentJon Leighton2011-06-051-0/+6
|
* Parenthesize arguments when the first one is a Regexp literal.Sebastian Martinez2011-05-231-1/+1
| | | | This fixes 'warning: ambiguous first argument; put parentheses or even spaces'.
* Fix tests to reflect IdentityMap no longer defaultDavid Lee2011-05-101-1/+1
| | | | Broke in 0e1dcae1857db4f6721561caff38d8be748d0b40
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-0/+30
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * Additionally trigger i18n configuration setup before any eager loading ↵Saimon Moore2011-02-011-0/+30
| | | | | | | | | | | | | | | | | | [#6353 state:resolved] This handles the case where config.cache_classes is true and classes are loaded before the I18n load path has had a chance to be populated. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Fix typo.Emilio Tagua2010-11-191-1/+1
| |
* | Use IdentityMap middleware to flush map on each request.Emilio Tagua2010-11-191-1/+1
|/
* Add config.action_controller.include_all_helpers, by default it is set to true.Piotr Sarnacki2010-11-181-0/+60
| | | | | | | In older rails versions there was a way to use only helpers from helper file corresponding to current controller and you could also include all helpers by saying 'helper :all' in controller. This config allows to return to older behavior by setting it to false.
* Merge remote branch 'drogus/engines'wycats2010-09-111-1/+1
|\
| * Change app to main_app in mounted_helpersPiotr Sarnacki2010-09-081-1/+1
| |
* | Add configuration option for tld lengthSimon Jefford2010-09-091-0/+7
|/
* Removed deprecated router API from railtiesPiotr Sarnacki2010-09-051-2/+2
|
* mounted helpers should be included in ActionMailerPiotr Sarnacki2010-09-031-0/+1
|
* Revert "Just add connection management middleware if running in a concurrent ↵Jeremy Kemper2010-08-201-11/+1
| | | | | | environment." This reverts commit 6b29dc876fe185881d46731c3ae170478a3828fe.
* Fix a failing test in Railtie and properly define all severity levels in ↵José Valim2010-07-201-14/+5
| | | | MockLogger for LogSubscriber.
* Just add connection management middleware if running in a concurrent ↵José Valim2010-07-121-1/+11
| | | | environment.
* Add a test to ensure url helpers are not action methods in ActionMailer.José Valim2010-07-071-0/+19
|
* Avoid calls to Rails::Application since this is not the official API.José Valim2010-07-012-2/+2
| | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
* adding missing assertion and fixing the testNeeraj Singh2010-06-241-2/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* fixing test by replacing assert with assert_equalNeeraj Singh2010-06-241-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Array#sample now exists, so test for #forty_two insteadJeremy Kemper2010-06-241-1/+1
|
* Revert "files in the lib directory are no longer autoloaded"Xavier Noria2010-06-211-3/+1
| | | | | | | This patch is not consistent since it leaves similar directories in load_paths, needs more thought. This reverts commit b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.
* files in the lib directory are no longer autoloadedXavier Noria2010-06-211-1/+3
| | | | | | | | | | | Conceptually, the lib directory is closer 3rd party libraries than to the application itself. Thus, Rails adds it to Ruby's load path ($LOAD_PATH, $:) but it is no longer included in dependencies' load paths. To enable autoloading back put this in your config/application.rb config.load_paths += %W( #{config.root}/lib )
* I18n.reload! is only called if any of the locale files actually changed.José Valim2010-06-201-19/+114
|
* Clear DescendantsTracker on each request.José Valim2010-06-191-1/+1
|
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
| | | | not "ActiveRecord"
* abort generation/booting on Ruby 1.9.1Xavier Noria2010-06-101-1/+3
|
* removes Array#random_element and backports Array#sample from Ruby 1.9, ↵Xavier Noria2010-06-051-2/+2
| | | | thanks to Marc-Andre Lafortune
* Add lib to load paths when application is inherited to be able to load lib ↵José Valim2010-06-021-0/+17
| | | | code during configuration.
* Renames Array#rand -> Array#random_elementRizwan Reza2010-05-171-2/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Fixed two failing tests in railties on 1.9.2-head [#4609 state:commited]rohit2010-05-161-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Expose remaining hooks to minimize the need for a Railtie based on feedback ↵José Valim2010-05-161-5/+23
| | | | from plugin developers.
* Reorganized initializers a bit to enable better hooks for common cases ↵wycats2010-05-151-13/+0
| | | | | | | | | | | | | | | without the need for Railtie. Specifically, the following hooks were added: * before_configuration: this hook is run immediately after the Application class comes into existence, but before the user has added any configuration. This is the appropriate place to set configuration for your plugin * before_initialize: This is run after all of the user's configuration has completed, but before any initializers have begun (in other words, it runs right after config/environments/{development,production,test}.rb) * after_initialize: This is run after all of the initializers have run. It is an appropriate place for forking in a preforking setup Each of these hooks may be used via ActiveSupport.on_load(name) { }. In all these cases, the context inside the block will be the Application object. This means that for simple cases, you can use these hooks without needing to create a Railtie.
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-1/+1
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* Deprecated ActionController::Base.session_options= and ↵Carlhuda2010-03-041-2/+2
| | | | ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings.
* Fix Sam Ruby's tests and deprecation warningsCarlhuda2010-03-041-2/+2
|
* Fix a test that assumes that defined?(ActiveRecord) == ↵Carlhuda2010-03-021-1/+1
| | | | defined?(ActiveRecord::Base)
* Add a test for default_url_options in AM.José Valim2010-02-211-0/+11
|
* Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure ↵José Valim2010-02-191-3/+15
| | | | after_initializer is executed after to_prepare callbacks.
* Ensure config.after_initializer is executed before building the middleware ↵José Valim2010-02-181-0/+14
| | | | stack.