aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
Commit message (Collapse)AuthorAgeFilesLines
* Temporarily bundle Rack 1.0 prerelease for testingJoshua Peek2009-02-071-2/+6
|
* Controller, response, and request should all refer to same session, even ↵Scott Taylor2009-01-291-4/+19
| | | | | | after a call to session_reset [#1823 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fixed deprecated methods on TestSession [#1801 state:resolved]Joshua Peek2009-01-271-12/+21
|
* Dont use Memoizable for ActionController::RequestPratik Naik2009-01-271-7/+8
|
* Change Object#try to raise NoMethodError on private methods and always ↵Pratik Naik2009-01-131-1/+2
| | | | return nil when Object is nil [Pratik Naik, Lawrence Pit]
* Include process methods in ActionController::TestCase only. No need to ↵Jeremy Kemper2009-01-071-34/+20
| | | | alias_method_chain :process either.
* Request#env['SERVER_NAME'] does not contain port numberPratik Naik2008-12-281-5/+1
|
* Undry ActionController::TestCase#<HTTP_METHODS> for better documentationPratik Naik2008-12-251-12/+25
|
* Move request parsing related code to ActionController::RequestParserPratik Naik2008-12-251-10/+21
|
* Use Rack::MockRequest for TestRequestPratik Naik2008-12-231-7/+7
|
* Switch to Rack::Response#set_cookie instead of using CGI::Cookie to build ↵Joshua Peek2008-12-201-3/+3
| | | | cookie headers
* Rename AbstractResponse to Response and inheirt from Rack::ResponseJoshua Peek2008-12-191-3/+3
|
* Process CGI 'cookie' header into 'Set-Cookie' for all responses.Joshua Peek2008-12-191-1/+6
| | | | This mostly affects response.headers['cookie'] for test requests. Use response.cookies instead.
* Use status response accessor instead of the 'Status' headerJoshua Peek2008-12-191-1/+1
|
* Lazy load flash accessJoshua Peek2008-12-161-1/+1
|
* Use Mime::JS in place of explicit 'text/javascript' [#1573 state:resolved]Seth Fitzsimmons2008-12-151-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add :partial option to assert_template [#1550 state:resolved]mark2008-12-111-2/+2
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* 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