aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/test_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* @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
* r1475@iwill: jeremy | 2005-06-28 23:19:51 -0700Jeremy Kemper2005-06-291-5/+5
| | | | | | | | | | | | | | | Ticket 1543 - Fix test_process r1476@iwill: jeremy | 2005-06-29 00:20:53 -0700 Correct expected, actual order for assert_equal. Use new render method in TestController. r1477@iwill: jeremy | 2005-06-29 00:23:45 -0700 Generate route and assign parameters without modifying the user's params. r1480@iwill: jeremy | 2005-06-29 00:28:52 -0700 Update changelog. r1481@iwill: jeremy | 2005-06-29 00:34:02 -0700 Directly generate paths with a leading slash instead of tacking it on later. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1557 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated assert_generates/routing to the new Routes code #1498 [Rick Olson]David Heinemeier Hansson2005-06-251-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assert_tag and assert_no_tag as a much improved alternative to the ↵David Heinemeier Hansson2005-04-171-0/+37
| | | | | | deprecated assert_template_xpath_match #1126 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added simulation of @request.request_uri in functional tests #1038 [Jamis Buck]David Heinemeier Hansson2005-04-071-0/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added fourth option to process in test cases to specify the content of the ↵David Heinemeier Hansson2005-03-261-0/+25
flash #949 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de