aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/test_case.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* 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!
* Further experimentation. Was able to cut the cost of rendering 100 partials ↵Yehuda Katz2009-08-111-9/+11
| | | | | | | | | | in a collection in half. To discuss: What are the desired semantics (if any) for layouts in a collection. There are no tests for it at present, and I'm not sure if it's needed at all. Deprecated on this branch: `object` pointing at the current object in partials. You can still use the partial name, or use :as to achieve the same thing. This is obviously up for discussion.
* Modify various partial methods to carry along the block that can be passed ↵Yehuda Katz2009-08-071-2/+2
| | | | | | | | | | in with render * _render_single_template, which renders a template without layout * _render_partial_unknown_type, which renders a partial of unknown type (the entry method for most partial rendering; supports strings, objects, and collections) * _render_partial_object, which renders a partial for a single object. * extracted _render_partial_path so it can be used to render the spacer without going through the public render :partial
* Replace _render_template_with_layout with _render_template since the layout ↵Yehuda Katz2009-08-071-2/+2
| | | | is optional
* Update some tests and add a to_model to form helpersYehuda Katz2009-07-201-0/+1
|
* Make assertion tests pass with the new basePratik Naik2009-05-221-1/+1
|
* Move generic assertions into ActionDispatchJoshua Peek2009-04-301-1/+1
|
* Deprecate template, session, assigns, and layout accessors on response ↵Joshua Peek2009-04-281-2/+3
| | | | object. Instead access them through the controller instance. This mainly affects functional test assertions.
* Refactor ActionView::TemplateYehuda Katz + Carl Lerche2009-04-271-3/+4
| | | | | | | | ActionView::Template is now completely independent from template storage, which allows different back ends such as the database. ActionView::Template's only responsibility is to take in the template source (passed in from ActionView::Path), compile it, and render it.
* Begin unifying the interface between ActionController and ActionViewYehuda Katz2009-01-221-11/+8
|
* Include process methods in ActionController::TestCase only. No need to ↵Jeremy Kemper2009-01-071-0/+1
| | | | alias_method_chain :process either.
* Explicitly require AS::TestCaseJeremy Kemper2009-01-061-0/+2
|
* Fixed ActionView::TestCase current url context [#1561 state:resolved]Dan Pickett2008-12-151-1/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add :partial option to assert_template [#1550 state:resolved]mark2008-12-111-0/+20
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Use autoload instead of explicit requires for ActionControllerJoshua Peek2008-11-231-2/+0
|
* Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-1/+3
|
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Include all helpers into ActionView::HelperJoshua Peek2008-08-251-3/+1
|
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-0/+5
| | | | the instance variable so others can override the methods.
* Don't require AV::TestCases to have a helper class. Only include the helper ↵Jeremy Kemper2008-05-261-10/+4
| | | | class in setup if it hasn't been already.
* Introduce ActionView::TestCase for testing view helpers.Joshua Peek2008-04-191-0/+64