aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove Content-Length header from :no_content responsesJeremy Kemper2009-01-071-1/+6
|
* Make ActionController#render(symbol) behave same as ↵Pratik Naik2008-12-261-1/+10
| | | | ActionController#render(string) [#1435]
* Make ActionController#render(string) work as a shortcut for render :action ↵Pratik Naik2008-12-251-0/+19
| | | | | | | | | | => string. [#1435] Examples: # Instead of render(:action => 'other_action') render('other_action') Note : Argument must not have any '/'
* Make ActionController#render(string) work as a shortcut for render :template ↵Pratik Naik2008-12-251-0/+21
| | | | | | | | | | => string. [#1435] Examples: # Instead of render(:template => 'controller/action') render('controller/action') Note : Argument must not begin with a '/', but have at least one '/'
* Make ActionController#render(string) work as a shortcut for render :file => ↵Pratik Naik2008-12-251-8/+21
| | | | | | | | | | string. [#1435] Examples: # Instead of render(:file => '/Users/lifo/home.html.erb') render('/Users/lifo/home.html.erb') Note : Filename must begin with a forward slash ('/')
* Make render_test.rb run in isolationPratik Naik2008-12-251-0/+2
|
* Rename AbstractResponse to Response and inheirt from Rack::ResponseJoshua Peek2008-12-191-5/+5
|
* Use status response accessor instead of the 'Status' headerJoshua Peek2008-12-191-2/+2
|
* Do not output an ETag header if response body is blank or when sending files ↵Hongli Lai (Phusion2008-12-161-0/+9
| | | | | | with send_file(... :xsendfile => true) [#1578 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Add :partial option to assert_template [#1550 state:resolved]mark2008-12-111-0/+7
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Set template_format to html inside rjs templates so renders within it ↵Joshua Peek2008-12-041-14/+0
| | | | default to html.
* Fix rendering html partials from an rjs templateSam Stephenson2008-12-041-0/+24
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Change the forgery token implementation to just be a simple random string.Michael Koziarski2008-11-231-1/+2
| | | | This deprecates the use of :secret and :digest which were only needed when we were hashing session ids.
* Fix rendering html partial via inline render when with :js format [#1399 ↵Luke Melia2008-11-181-0/+14
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Prevent assert_template failures when a render :inline is called before ↵Luke Melia2008-11-171-9/+19
| | | | | | rendering a file-based template [#1383 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-20/+12
|
* Added render :js for people who want to render inline JavaScript replies ↵David Heinemeier Hansson2008-11-011-0/+10
| | | | without using RJS [DHH]
* Ensure content type gets reset after render_to_string [#1182 state:resolved]Joshua Peek2008-10-301-0/+10
|
* Dont try to auto-set the etag based on the body if any freshness headers ↵David Heinemeier Hansson2008-10-211-5/+22
| | | | have already been set [DHH/José Valim]
* Let fresh_when actually do the head(:not_modified). Cleaner and we get the ↵David Heinemeier Hansson2008-10-211-3/+1
| | | | filter halting for free then.
* Added stale?/fresh? and fresh_when methods to provide a layer of abstraction ↵David Heinemeier Hansson2008-10-211-11/+14
| | | | above request.fresh? and friends [DHH]
* Make sure last_modified! works with <= rather than just equality.Michael Koziarski2008-10-071-0/+6
|
* Fix etag! and last_modified! to work as advertised.Michael Koziarski2008-09-301-1/+40
| | | | Add tests too.
* Don't set Content-Length on 304 responsesJonathan del Strother2008-09-021-0/+6
| | | | | | | | | Commit 8aad8c claimed to do this, but it checks for the 304 status too early, before handle_conditional_get! has overridden it. [#958 state:resolved] Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix AM tests and add tests for rendering loggingPratik Naik2008-08-311-0/+30
|
* Add test to make sure RJS block inside controller is executed in view contextPratik Naik2008-08-301-0/+13
|
* Merge RenderTest and NewRenderTestJoshua Peek2008-08-291-27/+822
|
* Return nil instead of a space when passing an empty collection or nil to ↵Ryan Bates2008-08-191-1/+1
| | | | | | 'render :partial' [#791 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Update tests for request memoizationJeremy Kemper2008-08-081-13/+13
|
* Simplifying usage of ETags and Last-Modified and conditional GET requestsJeremy Kemper2008-08-071-3/+8
|
* Set the response content type to that of found template if not explicitly ↵Tom Ward2008-07-181-5/+10
| | | | | | set elsewhere [#444 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* etag! and last_modified! conditional GET helpersJeremy Kemper2008-07-171-53/+99
|
* Try to get more useful errors out of the test_line_offset failuresMichael Koziarski2008-07-151-10/+10
|
* Set global ActionController::Base.view_paths for test casesJoshua Peek2008-07-121-3/+0
|
* Tighten the rescue clause here to prevent hiding strange mock related errors ↵Michael Koziarski2008-07-031-1/+1
| | | | behind the line offset test
* Set precompiled fixture load path constant to speed up testsJoshua Peek2008-06-251-14/+13
|
* Fixed render :template for templates in top level of view path. [#54 ↵Pratik Naik2008-05-011-0/+20
| | | | state:resolved]
* Make sure render :update support the options hash. Closes #11088 ↵Michael Koziarski2008-02-121-0/+12
| | | | | | [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce a Template class to ActionView. Closes #11024 [lifofifo]Michael Koziarski2008-02-061-13/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct line numbers from template errors. Closes #10937 [Aleksey Kondratenko]Michael Koziarski2008-01-271-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. ↵Michael Koziarski2008-01-211-0/+9
| | | | | | Closes #10800 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support render :text => nil. Closes #6684.Jeremy Kemper2008-01-061-0/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mark that render tests crash Ruby 1.9Jeremy Kemper2007-12-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render :xml and :json preserve custom content types. Closes #10388.Jeremy Kemper2007-12-091-10/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor the default rendering out to a method called default_render to ↵Michael Koziarski2007-10-251-0/+22
| | | | | | provide a hook for plugin authors. Closes #9953 [cjheath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JSON encoding to use quoted keys according to the JSON standard ↵David Heinemeier Hansson2007-09-301-3/+3
| | | | | | (closes #8762) [choonkat/chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove deprecated functionality from actionpack. Closes #8958 [lifofifo]Michael Koziarski2007-09-031-35/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Send freshness information when sending Etags. Without this internet ↵Michael Koziarski2007-08-121-0/+1
| | | | | | explorer will not send conditional gets for a resource, but instead hold on to the responses for the current browser session. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de