aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add TestResponse#client_error? to check for 4xx status codes [#851 ↵Lance Ivy2008-11-221-1/+6
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix straggling references to Test::Unit::TestCaseJeremy Kemper2008-11-201-8/+4
|
* Merge branch 'master' into testingJeremy Kemper2008-11-151-0/+1
|\
| * Changed request forgery protection to only worry about HTML-formatted ↵Jeff Cohen2008-11-131-0/+1
| | | | | | | | | | | | content requests. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-3/+3
| |
* | Remove controller assertions from Test::Unit::TestCase. Use ↵Jeremy Kemper2008-11-071-1/+0
|/ | | | ActionController::TestCase.
* Track rendered templates in stack so the current template can always be ↵Joshua Peek2008-10-281-1/+1
| | | | accessed. Added ActionView::Base#template to access the template object.
* Dont try to auto-set the etag based on the body if any freshness headers ↵David Heinemeier Hansson2008-10-211-0/+6
| | | | have already been set [DHH/José Valim]
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-3/+3
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Prefix ActionView::Base private methods with an underscoreJoshua Peek2008-08-311-1/+1
|
* Move copying ivar logic from ActionController::Base to ActionView::BasePratik Naik2008-08-311-1/+8
|
* Add TestUploadFile.content_type= to match Request.UploadedFileTim Haines2008-08-271-1/+1
| | | | | | [#920 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Use Response status accessor instead of the Status headerJoshua Peek2008-08-171-17/+17
|
* TestRequest#recycle! uses unmemoize_all to reset cached request method, ↵Jeremy Kemper2008-08-131-3/+3
| | | | accepts, etc.
* Update tests for request memoizationJeremy Kemper2008-08-081-5/+19
|
* Simplifying usage of ETags and Last-Modified and conditional GET requestsJeremy Kemper2008-08-071-11/+3
|
* Merge docrails changesPratik Naik2008-07-281-1/+8
|
* All 2xx requests are considered successful [#217 state:resolved]Joshua Peek2008-07-161-1/+1
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Made ActionView::Base#first_render a little more private. And added ↵Joshua Peek2008-07-131-11/+4
| | | | _last_render to track the most recent render. Will fix #609 as a side effect. [#609 state:resolved]
* Refactor template preloading. New abstractions include Renderable mixins and ↵Joshua Peek2008-07-121-7/+3
| | | | a refactored Template class.
* Remove old broken follow_redirect from functional tests. Still works in ↵Michael Koziarski2008-07-041-9/+0
| | | | | | integration tests. The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes.
* Merge docrails.Pratik Naik2008-05-251-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: ensure binary encoding for post body parsingJeremy Kemper2008-05-191-1/+2
|
* Improve documentation coverage and markupXavier Noria2008-05-021-31/+33
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* TestSession supports indifferent access. Closes #7372.Jeremy Kemper2008-02-021-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵Jeremy Kemper2008-01-051-0/+1
| | | | | | | | | [Josh Peek] * TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick ↵Jeremy Kemper2007-12-281-1/+1
| | | | | | Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed send_file/binary_content for testing (closes #8044) [tolsen]David Heinemeier Hansson2007-12-051-7/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-9/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add option to force binary mode on tempfile used for fixture_file_upload. ↵Jeremy Kemper2007-09-141-3/+11
| | | | | | Closes #6380. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_select for XML documents. Closes #8173. [dasil003]Michael Koziarski2007-09-081-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a user_agent to TestRequestMichael Koziarski2007-09-071-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce the request.body stream. Lazy-read to parse parameters rather than ↵Jeremy Kemper2007-05-151-11/+19
| | | | | | always setting RAW_POST_DATA. Reduces the memory footprint of large binary PUT requests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefer MIME constants to strings. Closes #7707.Jeremy Kemper2007-03-061-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [6086] and [6087] since they caused a major regression with ↵Jeremy Kemper2007-02-101-2/+2
| | | | | | functional tests in 1.2.2. References #7372. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TestSession supports indifferent access so session['foo'] == session[:foo] ↵Jeremy Kemper2007-01-281-2/+2
| | | | | | in your tests. Closes #7372. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-3/+3
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a 'referer' attribute to TestRequestJamis Buck2006-12-191-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* @response.redirect_url works with 201 Created responses: just return ↵Jeremy Kemper2006-11-281-1/+1
| | | | | | headers['Location'] rather than checking the response status. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use Location rather than location header.Jeremy Kemper2006-11-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Always clear model associations from session. Closes #4795.Jeremy Kemper2006-11-131-10/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved in deprecated assertions and remove duplicated requiresDavid Heinemeier Hansson2006-09-031-6/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better compartmentalizing of assertionsDavid Heinemeier Hansson2006-09-031-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4931 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assert_select* for CSS selector-based testing (deprecates assert_tag) ↵David Heinemeier Hansson2006-09-031-0/+2
| | | | | | #5936 [assaf.arkin@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4929 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Require Tempfile explicitly for TestUploadedFile due to changes in class ↵Rick Olson2006-08-091-0/+1
| | | | | | auto loading. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* show missing file path on failed fixture_file_uploadRick Olson2006-07-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure TestRequest#session always returns a TestSession [Koz]Michael Koziarski2006-07-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4487@asus: jeremy | 2006-04-29 12:21:39 -0700Jeremy Kemper2006-07-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check whether @flash is defined? for warnings-safety. r4488@asus: jeremy | 2006-04-29 12:23:15 -0700 Check whether @flash is defined? for warnings-safety. Obviates nil? check. r4489@asus: jeremy | 2006-04-29 12:45:18 -0700 Check whether @session is defined? for warnings-safety. r4490@asus: jeremy | 2006-04-29 12:50:41 -0700 Check whether @rendering_runtime is defined? for warnings-safety. r4491@asus: jeremy | 2006-04-29 12:55:01 -0700 Check whether @_cycles is defined? for warnings-safety. r4492@asus: jeremy | 2006-04-29 12:59:19 -0700 Check whether instance variables are defined? for warnings-safety. r4493@asus: jeremy | 2006-04-29 13:14:09 -0700 Add nil @template to PrototypeHelperTest to suppress unitialized instance variable warning. r4494@asus: jeremy | 2006-04-29 13:31:34 -0700 Check whether @auto_index defined? for warnings-safety. r4495@asus: jeremy | 2006-04-29 13:32:24 -0700 Wrap content_columns redefinitions with silence_warnings. r4496@asus: jeremy | 2006-04-29 13:35:28 -0700 Wrap more redefinitions with silence_warnings. r4829@asus: jeremy | 2006-07-08 10:59:20 -0700 abstract unit, fix warnings r4830@asus: jeremy | 2006-07-08 11:06:12 -0700 Use parens to silence warning. r4831@asus: jeremy | 2006-07-08 11:06:48 -0700 Use parens to silence warning. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix documentation for with_routing to reflect new reality (closes #5281)Jamis Buck2006-06-051-7/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de