aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
...
* Added locals hash to partials, which makes for convenient access of some ↵David Heinemeier Hansson2006-09-041-0/+22
| | | | | | times available/some times not variables (closes #5491) [wbruce@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecated render assertionsJeremy Kemper2006-09-041-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecated assertions testsJeremy Kemper2006-09-041-33/+51
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont raise deprecation warning on render :action => "stuff"David Heinemeier Hansson2006-09-041-28/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* new render deprecations testJeremy Kemper2006-09-041-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't use deprecated render API. Cosmetics.Jeremy Kemper2006-09-041-6/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecated keep_flash testJeremy Kemper2006-09-041-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* redirect deprecation testsJeremy Kemper2006-09-041-9/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* no more render_to_string deprecation warningsJeremy Kemper2006-09-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecated render testsJeremy Kemper2006-09-041-26/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4968 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
* Fix deprecation warnings in verification tests.Jeremy Kemper2006-09-041-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests: thoroughly test ActionController::Integration::Session. ↵Jeremy Kemper2006-09-032-0/+165
| | | | | | Closes #6022. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* actionJeremy Kemper2006-09-031-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated old render parameter callsDavid Heinemeier Hansson2006-09-031-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Require action mailer more gracefullyDavid Heinemeier Hansson2006-09-031-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More deprecation funDavid Heinemeier Hansson2006-09-032-1/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better compartmentalizing of assertionsDavid Heinemeier Hansson2006-09-031-0/+1
| | | | 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-032-0/+1118
| | | | | | #5936 [assaf.arkin@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4929 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
* Add routing tests to assert that RoutingError is raised when conditions ↵Rick Olson2006-09-021-0/+11
| | | | | | aren't met. Closes #6016 [Nathan Witmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Switch to using FormEncodedPairParser for parsing request parameters.Nicholas Seckar2006-08-301-19/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* respond_to .html now always renders #{action_name}.rhtml so that registered ↵Tobias Lütke2006-08-301-0/+19
| | | | | | | | | custom template handlers do not override it in priority. Custom mime types require a block and throw proper error now. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* FormEncodedStringParser needs a tad more work before it can handle POST data ↵David Heinemeier Hansson2006-08-281-0/+14
| | | | | | (like file handling), so were backing out for a bit git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: test deprecated instance vars in partials.Jeremy Kemper2006-08-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Actually, indifferent access mattered in the bowels (hashes hidden in arrays)David Heinemeier Hansson2006-08-261-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Result is made indifferent on the way outDavid Heinemeier Hansson2006-08-261-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed the POST parameter processing to use the new QueryStringParser and ↵David Heinemeier Hansson2006-08-261-2/+3
| | | | | | make the result a indifferent hash [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4821 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More tests for array/hashing in parameters, one failingDavid Heinemeier Hansson2006-08-261-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add UrlWriter to allow writing urls from Mailers and scripts.Nicholas Seckar2006-08-241-0/+65
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add test case from ticket #4090Nicholas Seckar2006-08-221-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Relax Routing's anchor pattern warning; it was preventing use of [^/] inside ↵Nicholas Seckar2006-08-151-0/+38
| | | | | | restrictions. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add controller_paths variable to Routing; Assign Routing.controller_paths ↵Nicholas Seckar2006-08-151-6/+4
| | | | | | from initializer; fix script/about and rails info controller. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_redirected_to issue with named routes for module controllers. ↵Rick Olson2006-08-132-0/+34
| | | | | | [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Invoke method_missing directly for hidden actions. Closes #3030.Nicholas Seckar2006-08-131-0/+58
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: check whether instance variables have been monkeyed with before ↵Jeremy Kemper2006-08-071-0/+15
| | | | | | assigning them to deprecation proxies. Raises a RuntimeError if so. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate direct usage of @params. Update ActionView::Base for instance var ↵Jeremy Kemper2006-08-073-6/+6
| | | | | | deprecation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation! @session and @flash will be removed after 1.2. Use the session ↵Jeremy Kemper2006-08-071-0/+33
| | | | | | and flash methods instead. You'll get printed warnings during tests and logged warnings in dev mode when you access either instance variable directly. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Routing noisy when an anchor regexp is assigned to a segment. Closes #5674Nicholas Seckar2006-08-051-10/+59
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove duplicate routes from mapped resources (closes #5712) ↵David Heinemeier Hansson2006-08-051-0/+22
| | | | | | [eigentone@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make controller_path available as an instance method. Closes #5724.Jeremy Kemper2006-08-051-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make us pass to ease RESTful children postsDavid Heinemeier Hansson2006-08-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make us pass to ease RESTful children postsDavid Heinemeier Hansson2006-08-041-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make action caching aware of different formats for the same action so that, ↵Marcel Molina2006-08-032-1/+137
| | | | | | e.g. foo.xml is cached separately from foo.html. Implicitly set content type when reading in cached content with mime revealing extensions so the entire onous isn't on the webserver. PDI MORE CACHING TESTS [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Restrict Request Method hacking with ?_method to POST requests. [Rick Olson]Rick Olson2006-08-011-1/+29
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Nested resource testing.Jeremy Kemper2006-08-011-16/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Nesting map.resourcesJeremy Kemper2006-08-011-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug when passing multiple options to SimplyRestful, like :new => { ↵Rick Olson2006-07-311-0/+41
| | | | | | :preview => :get, :draft => :get }. [Rick Olson, Josh Susser, Lars Pind] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dup the options passed to map.resources so that multiple resources get the ↵Rick Olson2006-07-311-2/+17
| | | | | | same options. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the new_#{resource}_url route and added named route tests for Simply ↵Rick Olson2006-07-311-13/+62
| | | | | | Restful. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de