aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* More test portingJoshua Peek2009-12-081-4/+3
|
* Fix caching test to ensure notifications are all deliveredJeremy Kemper2009-12-011-0/+1
|
* Notifications: extract central Notifier, cordon off the internal Fanout ↵Jeremy Kemper2009-11-281-1/+3
| | | | implementation, and segregate instrumentation concerns
* Caching refactoringYehuda Katz2009-10-291-2/+6
|
* Renamed Orchestra to Notifications once again [#3321 state:resolved]José Valim2009-10-151-1/+1
|
* Instrument cache store events only if required.José Valim2009-10-151-1/+1
|
* Update Orchestra instrumentations and move part of logging to Orchestra.José Valim2009-10-151-8/+1
|
* Revert "Rename Orchestra to Notifications [#3321 state:resolved]"José Valim2009-10-151-2/+2
| | | | This reverts commit 8cbf825425dc8ad3770881ea4e100b9023c69ce2.
* Merge branch 'arel'Jeremy Kemper2009-10-141-6/+10
|\
| * Clarify AR dependencyJeremy Kemper2009-10-141-6/+10
| |
* | Rename Orchestra to Notifications [#3321 state:resolved]Joshua Peek2009-10-141-2/+2
|/
* Use with_routing helper in tests instead of modifying global route setJoshua Peek2009-10-031-11/+11
|
* Fixes Sam Ruby tests suite.José Valim2009-09-211-3/+2
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Add Orchestra instrumentation to fragment and page caching.José Valim2009-09-201-3/+8
|
* Make sure caching test is using a generatable urlJoshua Peek2009-09-191-2/+2
|
* Cleanup route reloading in tests. Prefer with_routing over using ↵Joshua Peek2009-08-161-3/+0
| | | | ActionController::Routing::Routes directly
* More perf work:Yehuda Katz2009-08-111-1/+0
| | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare!
* Deprecate router generation "best match" sortingJoshua Peek2009-08-091-1/+1
|
* Fixes "Cached fragment hit" written to log even if fragment is not cached ↵Yehuda Katz2009-08-081-0/+15
| | | | (Erik Andrejko) [#2917 state:resolved]
* Added responds_to to new base.Yehuda Katz + Carl Lerche2009-05-201-0/+2
|
* Extract ActionController rescue templates into Rescue and ShowExceptions ↵Joshua Peek2009-05-021-0/+3
| | | | | middleware. This commit breaks all exception catching plugins like ExceptionNotifier. These plugins should be rewritten as middleware instead overriding Controller#rescue_action_in_public.
* Switch functional tests to run through the rack interface instead of processJoshua Peek2009-05-021-1/+1
|
* Fix action-cached exception responses.John F. Douthat2009-04-301-0/+35
| | | | | | | | Methods raising ActiveRecord::RecordNotFound were returning 404 on first request and 200 OK with blank body on subsequent requests. [#2533 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Start moving TestRequest and TestResponse into ActionDispatchJoshua Peek2009-04-301-1/+1
|
* Bring abstract_controller up to date with rails/masterCarl Lerche & Yehuda Katz2009-04-131-14/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Ensure correct content type is declared after cache hits on actions with ↵Mislav Marohnić2009-03-101-0/+14
| | | | | | | | | | | | string cache keys [#1585 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-14/+10
| |
* | Temporarily modifies setup to call super directly. This can support more ↵Yehuda Katz and Carl Lerche2009-04-081-0/+4
|/ | | | T::U runners.
* Undry ActionController::TestCase#<HTTP_METHODS> for better documentationPratik Naik2008-12-251-2/+1
|
* Use status response accessor instead of the 'Status' headerJoshua Peek2008-12-191-1/+1
|
* Fix failing test introduced by optional-format routesJeremy Kemper2008-12-081-0/+1
|
* Ensure route set is cleared on teardownJoshua Peek2008-12-041-2/+2
|
* write_fragment returns content if caching is disabled [#846 state:resolved]Joshua Peek2008-11-221-1/+1
|
* Wrap straggling mocha user with uses_mocha blockJeremy Kemper2008-11-081-5/+7
|
* Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-4/+4
|
* Update tests for request memoizationJeremy Kemper2008-08-081-1/+1
|
* Improved test coverage for fragment cache helperJoshua Peek2008-07-151-13/+49
|
* Get buffer for fragment cache from template's @output_bufferJoshua Peek2008-07-151-41/+2
|
* Made ActionView::Base#first_render a little more private. And added ↵Joshua Peek2008-07-131-0/+8
| | | | _last_render to track the most recent render. Will fix #609 as a side effect. [#609 state:resolved]
* Set global ActionController::Base.view_paths for test casesJoshua Peek2008-07-121-3/+0
|
* Ensure use_accept_header is enabled for test_action_cache_conditional_optionsJoshua Peek2008-07-111-1/+2
|
* Ensure use_accept_header is enabled for test_action_cache_conditional_optionsJoshua Peek2008-07-111-0/+2
|
* Disable the Accept header by defaultMichael Koziarski2008-07-071-8/+2
| | | | | | | | The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format]
* Allow caches_action to accept cache store options. [#416 state:resolved]josevalim2008-07-041-1/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Set precompiled fixture load path constant to speed up testsJoshua Peek2008-06-251-2/+3
|
* Revert "Lazy load cache and session stores"David Heinemeier Hansson2008-06-121-1/+0
| | | | This reverts commit 19895f087c338d8385dff9d272d30fb87cb10330.
* Improve ActionCaching's format-handlingJonathan del Strother2008-06-111-5/+48
| | | | | | | | Make ActionCaching more aware of different mimetype formats. It will now use request.format to look up the cache type, in addition to the path extension. When expiring caches, the request format no longer affects which cache is expired. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Lazy load cache and session storesPratik Naik2008-06-101-0/+1
|
* Merge branch 'master' into erboutJeremy Kemper2008-06-031-0/+15
|\
| * Allow caches_action to accept a layout option [#198 state:resolved]josevalim2008-06-031-0/+15
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>