aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/test_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Prepare Route#generate and Route#recognize early. Also refactor segments a ↵Joshua Peek2008-07-281-2/+2
| | | | bit to try to make immutable.
* Routing whitespace cleanupJoshua Peek2008-07-281-11/+10
|
* Remove old broken follow_redirect from functional tests. Still works in ↵Michael Koziarski2008-07-041-18/+0
| | | | | | integration tests. The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes.
* Ruby 1.9 compat: ensure binary encoding for post body parsingJeremy Kemper2008-05-191-5/+15
|
* Fixed flash.now not being accessible in tests. Flash sweeping is now done ↵Andreas Neuhaus2008-05-111-0/+10
| | | | | | | | before action processing instead after Signed-off-by: Michael Koziarski <michael@koziarski.com> [#10 state:resolved]
* Allow using named routes in ActionController::TestCase before any request ↵Pratik Naik2008-03-081-0/+11
| | | | | | has been made. Closes #11273 [alloy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TestSession supports indifferent access. Closes #7372.Jeremy Kemper2008-02-021-0/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assert_routing aware of the HTTP method used. Closes #8039 [mpalmer]Michael Koziarski2008-01-301-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵Jeremy Kemper2008-01-051-10/+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
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that test case setup is run even if overridden. Closes #10382.Jeremy Kemper2007-12-281-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed send_file/binary_content for testing (closes #8044) [tolsen]David Heinemeier Hansson2007-12-051-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TestCase subclasses for testing rails applications allowing tests ↵Michael Koziarski2007-10-261-0/+32
| | | | | | to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* request.parameters doesn't overwrite request.request_parameters. Closes ↵Jeremy Kemper2007-10-221-2/+2
| | | | | | #9949 [nullstyle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add tests for [7727]. Closes #6090 [dkubb, mpalmer, tarmo]Jeremy Kemper2007-10-081-0/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add option to force binary mode on tempfile used for fixture_file_upload. ↵Jeremy Kemper2007-09-141-0/+24
| | | | | | 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-0/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include location header in args.Jeremy Kemper2007-05-181-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce the request.body stream. Lazy-read to parse parameters rather than ↵Jeremy Kemper2007-05-151-2/+13
| | | | | | 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
* Expect string response body.Jeremy Kemper2007-04-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: remove deprecated url_for(:symbol, *args) and ↵Jeremy Kemper2007-03-131-14/+0
| | | | | | redirect_to(:symbol, *args) controller methods. Use named routes instead. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [6086] and [6087] since they caused a major regression with ↵Jeremy Kemper2007-02-101-14/+0
| | | | | | 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-0/+14
| | | | | | in your tests. Closes #7372. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Test::Unit::TestCase#clean_backtraceJeremy Kemper2007-01-281-2/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_redirected_to bug where redirecting from a nested to to a ↵Rick Olson2006-12-251-1/+1
| | | | | | top-level controller incorrectly added the current controller's nesting. Closes #6128. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* @response.redirect_url works with 201 Created responses: just return ↵Jeremy Kemper2006-11-281-0/+19
| | | | | | headers['Location'] rather than checking the response status. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix broken assert_generates when extra keys are being checked.Jamis Buck2006-10-161-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_tag so that :content => "foo" does not match substrings, but only ↵Jamis Buck2006-09-101-2/+9
| | | | | | exact strings. Use :content => /foo/ to match substrings. closes #2799 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add test case to test attribute matching by assert_tagJamis Buck2006-09-091-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test_test deprecation and cosmeticsJeremy Kemper2006-09-041-22/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cleanup assert_tag :children counting. Closes #2181.Jeremy Kemper2006-09-031-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New routes implementation. Simpler, faster, easier to understand. The ↵Jamis Buck2006-06-011-6/+7
| | | | | | 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
* follow_redirect doesn't complain about being redirected to the same ↵Jeremy Kemper2006-05-221-7/+39
| | | | | | controller. Closes #5153. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Diff compared options with #assert_redirected_to [Rick]Rick Olson2006-04-221-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_redirected_to so it works with symbolsJamis Buck2006-03-201-3/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added easy support for testing file uploads with fixture_file_upload (closes ↵David Heinemeier Hansson2006-03-181-0/+27
| | | | | | #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/+17
| | | | | | #3042) [francois.beausoleil@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the request method would be sticky in tests (closes #3849) ↵David Heinemeier Hansson2006-02-201-0/+6
| | | | | | [lars@pinds.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix the html-scanner to count children correctly, playing nicely with :only, ↵Jamis Buck2005-10-181-2/+19
| | | | | | fixes #2181 [patrick@lenz.sh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unset the X-Requested-With header when using the xhr wrapper in functional ↵Sam Stephenson2005-10-131-0/+5
| | | | | | tests. Closes #2352. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assert_tag :children count appropriately. Closes #2181.Marcel Molina2005-10-091-1/+128
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use raise instead of assert_not_nil in Test::Unit::TestCase#process to ↵Jamis Buck2005-08-011-0/+17
| | | | | | 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
* Allow remote_addr to be queried on TestRequest #1668Jamis Buck2005-07-311-1/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved rendering speed on complicated templates by up to 25% #1234 ↵David Heinemeier Hansson2005-07-211-0/+1
| | | | | | [Stephan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_routing with nested controllers. Closes #1582 and #1386.Nicholas Seckar2005-07-151-3/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved testing of functional test setup.Nicholas Seckar2005-07-071-3/+37
| | | | | | | | | | | | Fixed functional test setup so that :controller and :action are stored into path_parameters using string keys. Added with_routing test helper which can be used to dynamically replace the current set of routes inside a unit test. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Uncommented request.recycle! as it breaks more than it fixes, left test case ↵David Heinemeier Hansson2005-06-301-4/+15
| | | | | | in, xal? git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Got back to functional testing harmonyDavid Heinemeier Hansson2005-06-291-0/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de