aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated calls to Dispatcher.to_prepareJoshua Peek2009-09-261-10/+5
|
* Move default middleware stack into initializerJoshua Peek2009-09-261-4/+0
|
* Fix generic url rewriter in integration testsJoshua Peek2009-09-251-0/+9
|
* Resurrect AC::Benchmarking [#3140 state:resolved]Joshua Peek2009-09-241-12/+11
|
* Fixes Sam Ruby tests suite.José Valim2009-09-211-3/+2
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Use NewCallbacks on ActionDispatch::Callbacks.José Valim2009-09-201-8/+10
|
* Add Orchestra instrumentation to fragment and page caching.José Valim2009-09-201-3/+8
|
* Namespace TestControllers inside their test case classJoshua Peek2009-09-194-199/+216
|
* Avoid conflict with a "MetalTest" module used in testsJoshua Peek2009-09-191-1/+1
|
* Avoid conflicts with another ContentTypeController used in testingJoshua Peek2009-09-191-8/+7
|
* Make sure caching test is using a generatable urlJoshua Peek2009-09-191-2/+2
|
* Beef up AD::Rescue to replace global exception handling lost in ↵Joshua Peek2009-09-151-22/+13
| | | | ApplicationController
* Remove global exception catching from ApplicationController.Joshua Peek2009-09-151-12/+12
| | | It was severely broken since it was ported to NewBase and is causing problems with normal exception catching. A replacement is coming soon.
* Rewrite resource routing tests that are coupled to the router implementationJoshua Peek2009-09-131-2/+3
|
* Need to reset session for AP rescue tests after altering the route setJoshua Peek2009-09-131-0/+1
|
* Fix filtering parameters when there are Fixnum or other un-dupable values.Nathaniel Talbott2009-09-101-0/+1
| | | | | | [#3184 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Use draw/connect mapper api instead of directly using add_named_routeJoshua Peek2009-09-061-12/+34
|
* Add fake controllers for url rewriter testsJoshua Peek2009-09-061-0/+1
|
* Need to reset session in internal integration tests after altering the route setJoshua Peek2009-09-061-0/+1
|
* Fix isolated running of AddressesTestJoshua Peek2009-09-061-6/+2
|
* Fix isolated running of ActionPackAssertionTestJoshua Peek2009-09-061-0/+1
|
* Fix failing isolated routing testJoshua Peek2009-09-051-16/+16
|
* Fix the */* with Net::HTTP bug [#3100 state:resolved]Yehuda Katz + Carl Lerche2009-09-011-1/+1
|
* Ensure that blocks are also handled inside the responder.José Valim2009-08-291-0/+7
|
* Reset session in integration tests after changing routes to reload the ↵Joshua Peek2009-08-271-0/+1
| | | | middleware stack
* UrlRewriter#rewrite_url should call #to_param on the value given in :anchor ↵Jeffrey Hardy2009-08-261-0/+26
| | | | | | | | option, just as #url_for does [#2746 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Track all AC base subclasses as possible controllers for internal testingJoshua Peek2009-08-253-81/+16
|
* Move legacy param_parsers config onto AD::ParamsParserJoshua Peek2009-08-211-62/+67
|
* Cleanup route reloading in tests. Prefer with_routing over using ↵Joshua Peek2009-08-1612-134/+129
| | | | ActionController::Routing::Routes directly
* Axe "best fit" generation supportJoshua Peek2009-08-151-12/+0
|
* Got tests to pass with some more changes.Yehuda Katz2009-08-153-38/+21
| | | | | | | | | | | | | | | | * request.formats is much simpler now * For XHRs or Accept headers with a single item, we use the Accept header * For other requests, we use params[:format] or fallback to HTML * This is primarily to work around the fact that browsers provide completely broken Accept headers, so we have to whitelist the few cases we can specifically isolate and treat other requests as coming from the browser * For APIs, we can support single-item Accept headers, which disambiguates from the browsers * Requests to an action that only has an XML template from the browser will no longer find the template. This worked previously because most browsers provide a catch-all */*, but this was mostly accidental behavior. If you want to serve XML, either use the :xml format in links, or explicitly specify the XML template: render "template.xml".
* More cleanup of ActionView and reduction in need for blocks in some cases:Yehuda Katz2009-08-151-9/+0
| | | | | | | | * only one of partial_name or :as will be available as a local * `object` is removed * Simplify _layout_for in most cases. * Remove <% render :partial do |args| %> * <% render :partial do %> still works fine
* Attempt to rewrite most of the highly coupled router segments testsJoshua Peek2009-08-141-741/+221
|
* Kill routing timed testsJoshua Peek2009-08-141-50/+3
|
* Merge branch 'master' of git://github.com/rails/railsJosé Valim2009-08-131-1/+0
|\
| * 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!
* | Ensure collections are not treated as nested resources.José Valim2009-08-131-7/+20
|/
* Deprecate router generation "best match" sortingJoshua Peek2009-08-093-7/+9
|
* Added both the documentation and a test case for the collection path name ↵Hugo Peixoto2009-08-091-0/+44
| | | | | | | | customization feature. [#1218 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make http digest work with different server/browser combinationsJosé Valim2009-08-091-6/+29
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Clean up partial object some more; replace passing around a block to a ↵Yehuda Katz2009-08-091-1/+0
| | | | single block ivar
* Add :redirect to the testable RJS statements [#2612 state:resolved]Jon Wood2009-08-091-0/+7
| | | | | | | Example : assert_select_rjs :redirect, root_path Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix HTTP basic authentication for long credentials [#2572 state:resolved]Jan Schwenzien2009-08-091-0/+25
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add test ensuring redirect_to uses the given protocol [#2886]Dan Croak2009-08-081-0/+10
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge commit 'jose/responder'Yehuda Katz2009-08-081-5/+5
|\
| * Renamed ActionController::Renderer to ActionController::Responder and ↵José Valim2009-08-081-5/+5
| | | | | | | | ActionController::MimeResponds::Responder to ActionController::MimeResponds::Collector.
* | Fixes "Cached fragment hit" written to log even if fragment is not cached ↵Yehuda Katz2009-08-081-0/+15
|/ | | | (Erik Andrejko) [#2917 state:resolved]
* Ruby 1.9 compat: fix route recognition encoding testJeremy Kemper2009-08-071-1/+1
|
* Renamed presenter to renderer, added some documentation and defined its API.José Valim2009-08-071-4/+18
|
* Encapsulate respond_with behavior in a presenter.José Valim2009-08-071-22/+18
|