aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* New routes implementation. Simpler, faster, easier to understand. The ↵Jamis Buck2006-06-011-2/+2
| | | | | | published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Easy way to set accepting for functional testsDavid Heinemeier Hansson2006-05-311-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* follow_redirect doesn't complain about being redirected to the same ↵Jeremy Kemper2006-05-221-2/+3
| | | | | | controller. Closes #5153. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina ↵Marcel Molina2006-04-291-2/+1
| | | | | | Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* reset TestRequest#parameters after assigning paramtersRick Olson2006-04-221-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add the TestCase.fixture_path when testing file uploadsRick Olson2006-03-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* If RAW_POST_DATA was set explicitly, use that (closes #4281)David Heinemeier Hansson2006-03-191-6/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added easy support for testing file uploads with fixture_file_upload (closes ↵David Heinemeier Hansson2006-03-181-0/+43
| | | | | | #4105) [turnip@turnipspatch.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TestRequest#raw_post that simulate raw_post from CgiRequest (closes ↵David Heinemeier Hansson2006-03-161-0/+10
| | | | | | #3042) [francois.beausoleil@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the xml_http_request testing method set the HTTP_ACCEPT headerJamis Buck2006-03-141-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added better support for using the same actions to output for different ↵David Heinemeier Hansson2006-03-111-1/+1
| | | | | | sources depending on the Accept header [DHH] Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move methods from TestResponse into a module, so they can be shared with ↵Jamis Buck2006-03-091-1/+7
| | | | | | response objects in integration tests. (This allows standard functional test assertions to be used in integration tests, like assert_response and assert_template.) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* restore elided TestProcess#assigns methodJamis Buck2006-03-011-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make TestProcess methods public for access via Integration::Session. Make ↵Jamis Buck2006-03-011-114/+105
| | | | | | return values from some of the Integration::Session methods sane. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the request method would be sticky in tests (closes #3849) ↵David Heinemeier Hansson2006-02-201-2/+3
| | | | | | [lars@pinds.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reusable reloading support through the inclusion of the Relodable ↵David Heinemeier Hansson2006-01-291-0/+7
| | | | | | module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract Test::Unit::TestCase test process behavior into an ↵Sam Stephenson2006-01-201-107/+113
| | | | | | ActionController::TestProcess module git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add line and file information to test process' get, post, etc methodsNicholas Seckar2005-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* reasoning behind the seemingly duplicated methodMichael Koziarski2005-10-151-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add code and message to test response as per #2460Michael Koziarski2005-10-151-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unset the X-Requested-With header when using the xhr wrapper in functional ↵Sam Stephenson2005-10-131-1/+3
| | | | | | tests. Closes #2352. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Testing should also use a default REQUEST_METHODDavid Heinemeier Hansson2005-09-291-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Asserts now need html/document so it should require itDavid Heinemeier Hansson2005-09-211-9/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use raise instead of assert_not_nil in Test::Unit::TestCase#process to ↵Jamis Buck2005-08-011-5/+6
| | | | | | ensure that the test variables (controller, request, response) have been set git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure assigns are built for every request when testing #1866Jamis Buck2005-07-311-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de