aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/initializers/frameworks_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* remove unused require ‘set’NehaGautam2015-08-251-1/+0
|
* tests, railties tests should use `bin/` executables when possible.Yves Senn2015-06-301-2/+2
| | | | | We recommend using the `bin/` executables in our docs and guides. Let's make sure that our tests execute the same code path.
* Use new hash syntaxSantiago Pastorino2015-06-111-1/+1
|
* Add AC::API + its middleware stack integration testSantiago Pastorino2015-06-111-0/+29
|
* Remove deprecate `*_path` helpers in email viewsRafael Mendonça França2015-01-041-1/+0
|
* Expectations firstAkira Matsuda2014-08-281-2/+2
|
* Deprecate `*_path` methods in mailers@schneems and @sgrif2014-07-301-2/+2
| | | | | | | | | | | Email does not support relative links since there is no implicit host. Therefore all links inside of emails must be fully qualified URLs. All path helpers are now deprecated. When removed, the error will give early indication to developers to use `*_url` methods instead. Currently if a developer uses a `*_path` helper, their tests and `mail_view` will not catch the mistake. The only way to see the error is by sending emails in production. Preventing sending out emails with non-working path's is the desired end goal of this PR. Currently path helpers are mixed-in to controllers (the ActionMailer::Base acts as a controller). All `*_url` and `*_path` helpers are made available through the same module. This PR separates this behavior into two modules so we can extend the `*_path` methods to add a Deprecation to them. Once deprecated we can use this same area to raise a NoMethodError and add an informative message directing the developer to use `*_url` instead. The module with warnings is only mixed in when a controller returns false from the newly added `supports_relative_path?`. Paired @sgrif & @schneems
* Revise 'sqlite3:' URL handling for smoother upgradesMatthew Draper2014-04-031-2/+2
| | | | | | | | | | | | | | | | Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll change to the absolute-path interpretation in 4.2. The current "correct" spellings for in-memory, relative, and absolute URLs, respectively, are: sqlite3::memory: sqlite3:relative/path sqlite3:/full/path Substantially reverses/defers fbb79b517f3127ba620fedd01849f9628b78d6ce. Uncovered by @guilleiguaran while investigating #14495, though that sounds like a different issue.
* Use Full path to sqlite database in testsschneems2013-12-221-1/+1
|
* build fix: railties tests used deprecated `SchemaCache` methods.Yves Senn2013-07-041-2/+2
|
* Calls to the application constant have been refactored to usewangjohn2013-06-101-3/+3
| | | | | Rails.application when drawing routes and creating other configurations on the application.
* Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵Jeremy Kemper2012-12-211-16/+0
| | | | with Rails 4.0.
* Removing warning : ambiguous first argumentArun Agrawal2012-11-111-2/+2
|
* Remove the queue container. Premature consolidation. Set up and maintain ↵Jeremy Kemper2012-10-121-3/+2
| | | | queues in the classes that use them instead.
* Use String#exclude? to make sure that Active Support is not loaded whenRafael Mendonça França2012-10-041-1/+1
| | | | | | | bare is true. We need to change this since coffee-rails loads ActionView that loads core_ext/array/access.
* Move queue classes to ActiveSupportSantiago Pastorino2012-09-141-3/+3
|
* Allow users to configure the queue for the mailersRafael Mendonça França2012-09-121-0/+17
| | | | | | | | | | | | This allow the users to do: config.action_mailer.queue = MyQueue.new and class UsersMailer < ActionMailer::Base self.queue = MyQueue.new end
* fixed support for DATABASE_URL for rake db tasksGrace Liu2012-09-111-0/+32
| | | | | | | | | | | | - 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).
* Extract ActiveRecord::SessionStore from RailsPrem Sichanugrist2012-08-241-20/+0
| | | | | This functionality will be available from gem `active_record-session_store` instead.
* Remove default match without specified methodJose and Yehuda2012-04-241-1/+1
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* Remove --http.José Valim2012-03-141-27/+0
|
* Add ActionController::HTTPSantiago Pastorino2012-03-141-0/+27
| | | | | | More info http://edgeguides.rubyonrails.org/api_app.html [Carlos Antonio da Silva & Santiago Pastorino]
* Fix broken testsSantiago Pastorino2012-03-101-1/+2
|
* Use one system call whenever possible, group rake and Dir.chdir callsCarlos Antonio da Silva2012-03-081-9/+4
|
* Support judgement expired schema cache dump.kennyj2012-03-011-0/+14
|
* Load db/schema_cache.dump duaring boot time.kennyj2012-03-011-0/+12
|
* convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|
* remove checks for encodings availabilitySergey Nartimov2011-12-251-1/+1
|
* 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.
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-061-3/+1
|
* framework_test.rb also dependent on RAILS_ENV=developmentArun Agrawal2011-06-061-0/+6
|
* Fix tests to reflect IdentityMap no longer defaultDavid Lee2011-05-101-1/+1
| | | | Broke in 0e1dcae1857db4f6721561caff38d8be748d0b40
* 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
|/
* 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.
* 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-011-1/+1
| | | | 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
|
* removes Array#random_element and backports Array#sample from Ruby 1.9, ↵Xavier Noria2010-06-051-2/+2
| | | | thanks to Marc-Andre Lafortune
* Renames Array#rand -> Array#random_elementRizwan Reza2010-05-171-2/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.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.