aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
...
* AP tests: detect missing dependencies and automatically run bundlerJoshua Peek2009-09-133-4/+34
|
* Merge abstract_controller/test_helper and new_base/test_helper since they ↵Joshua Peek2009-09-1325-73/+45
| | | | are expected to run in the same testing sandbox
* Remove dead old base abstract unitJoshua Peek2009-09-131-46/+0
|
* Need to declare optional dependencies from ASJoshua Peek2009-09-131-0/+3
|
* Don't force test suite to use bundlerJoshua Peek2009-09-132-2/+8
|
* Merge commit 'alloy/master-nested_attributes_and_autosave'Michael Koziarski2009-09-131-0/+36
|\
| * Allow fields_for on a nested_attributes association to accept an explicit ↵Andrew France2009-09-121-0/+36
| | | | | | | | | | | | collection to be used. [#2648 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* | Get ActionPack's test running on bundled gems. This should make running ↵Yehuda Katz2009-09-122-11/+3
| | | | | | | | tests on new machines, as well as CI, work well.
* | Add per-controller middlewareYehuda Katz2009-09-121-0/+77
|/
* 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
|
* Need to reset session for AR session tests after altering the route setJoshua Peek2009-09-061-0/+1
|
* Add fake controllers for url rewriter testsJoshua Peek2009-09-062-0/+6
|
* Cleanup hacky routing with controller_path in url helper tests. This doesn't ↵Joshua Peek2009-09-062-63/+57
| | | | work in real life anyway.
* 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-062-6/+3
|
* Fix isolated running of ActionPackAssertionTestJoshua Peek2009-09-062-1/+2
|
* Fix failing isolated routing testJoshua Peek2009-09-051-16/+16
|
* Test for previous commit (we wrote it first, I swear)Yehuda Katz + Carl Lerche2009-09-031-0/+18
|
* Refactor ActionController to use find_template and template_exists?Yehuda Katz + Carl Lerche2009-09-031-2/+2
|
* Don't raise exceptions for missing javascript_include_tag or ↵Sam Pohlenz2009-09-031-4/+58
| | | | | | stylesheet_link_tag sources unless the :cache or :concat options are given. [#2738 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Remove a useless method in the fixture template classYehuda Katz + Carl Lerche2009-09-031-4/+0
|
* Refactor ActionView::ResolverYehuda Katz + Carl Lerche2009-09-033-55/+16
|
* If session_options[:id] is requested when using CookieStore, unmarshal the ↵Jay Pignata2009-09-031-2/+2
| | | | | | session to access it [#2268 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix the */* with Net::HTTP bug [#3100 state:resolved]Yehuda Katz + Carl Lerche2009-09-012-4/+7
|
* ActionPack test helpers need to activate rack gemJoshua Peek2009-09-013-3/+11
|
* Activate rack-test gem before it's required. This shouldn't be necessary, ↵Bryan Helmkamp2009-08-311-0/+2
| | | | but should fix the build for now
* rack-test 0.4.2 has rack 1.1.pre goodies, we'll use it insteadJoshua Peek2009-08-311-2/+2
|
* 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-279-27/+39
| | | | 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>
* I18n: use I18n for select helpers' prompt textAkira Matsuda2009-08-261-0/+27
| | | | | | [#2252 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "I18n: use I18n for select helpers' prompt text"Jeremy Kemper2009-08-261-22/+0
| | | | | | | | Broke CI. [#2252 state:open] This reverts commit adedf72821a5623227ce91e6b298838e692477e4.
* I18n: use I18n for select helpers' prompt textAkira Matsuda2009-08-261-0/+22
| | | | | | [#2252 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Create new ActionController::Middleware class that will work as a normal ↵Yehuda Katz2009-08-265-87/+131
| | | | | | Rack middleware. * This initial implementation is a bit hackish, but it uses a normal middleware API so it's future-proof when we improve the internals.
* Track all AC base subclasses as possible controllers for internal testingJoshua Peek2009-08-256-92/+50
|
* ActionController::Metal can be a middlewareYehuda Katz + Carl Lerche2009-08-251-0/+45
|
* Move legacy param_parsers config onto AD::ParamsParserJoshua Peek2009-08-211-62/+67
|
* k, thats really slow, lets notJoshua Peek2009-08-161-8/+0
|
* Cleanup route reloading in tests. Prefer with_routing over using ↵Joshua Peek2009-08-1613-135/+139
| | | | ActionController::Routing::Routes directly
* Missing fixture template -- fixes AP testsYehuda Katz2009-08-151-0/+1
|
* Adding a call to logger from params_parser to give detailed debug ↵Jay Pignata2009-08-152-5/+40
| | | | | | | | information when invalid xml or json is posted [#2481 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Axe "best fit" generation supportJoshua Peek2009-08-151-12/+0
|
* Got tests to pass with some more changes.Yehuda Katz2009-08-1514-91/+79
| | | | | | | | | | | | | | | | * 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-155-13/+3
| | | | | | | | * 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
* Clean up ActionView some:Yehuda Katz2009-08-151-11/+23
| | | | | | | | | | * Call _evaluate_assigns_and_ivars at the two entry points so we don't have to do a check at every render. * Make template.render viable without having to go through a wrapper method * Remove old TemplateHandler#render(template, local_assigns) path so we don't have to set self.template every time we render a template. * Move Template rescuing code to Template#render so it gets caught every time. * Pull in some tests from Pratik that test render @object in ActionView
* 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
|
* Use safe tmp dirJoshua Peek2009-08-132-0/+2
|
* Merge branch 'master' of git://github.com/rails/railsJosé Valim2009-08-133-4/+3
|\