aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* 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-268-8/+26
| | | | 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
* Clean up and run the Active Record integration tests by default. Closes #5854.Jeremy Kemper2006-08-225-76/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4807 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
* Clean up and run the Active Record integration tests by default.Jeremy Kemper2006-08-224-38/+55
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4804 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
* New dependencies implementationNicholas Seckar2006-08-081-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4728 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-074-6/+37
| | | | | | deprecation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for the param_name parameter to the auto_complete_field helper. ↵Thomas Fuchs2006-08-071-0/+2
| | | | | | Fixes #5026 [david.a.williams@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4713 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
* Make test_tag_options pass (closes #5600) [shugo]David Heinemeier Hansson2006-08-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added months and years to the resolution of ↵David Heinemeier Hansson2006-08-051-0/+10
| | | | | | DateHelper#distance_of_time_in_words, such that "60 days ago" becomes "2 months ago" (closes #5611) [pjhyett@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4674 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
* Added map.resources from the Simply Restful plugin (backwards incompatible ↵David Heinemeier Hansson2006-07-311-0/+109
| | | | | | with the plugin!) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that you can still access the flash after the flash has been reset in ↵Rick Olson2006-07-221-0/+17
| | | | | | reset_session. Closes #5584 [lmarlow@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow form_for and fields_for to work with indexed form inputs. [Jeremy ↵Rick Olson2006-07-181-0/+18
| | | | | | Kemper, Matt Lyon] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4487@asus: jeremy | 2006-04-29 12:21:39 -0700Jeremy Kemper2006-07-083-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Pass :id => nil or :class => nil to error_messages_for to supress that html ↵Jeremy Kemper2006-07-081-0/+2
| | | | | | attribute. Closes #3586. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* text_field_with_auto_complete stylesheet uses <style type="text/css"> ↵Jeremy Kemper2006-07-051-1/+1
| | | | | | instead of bare <style>. Closes #5610. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added exception handling of missing layouts (closes #5373) [chris@ozmm.org]David Heinemeier Hansson2006-07-051-1/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that real files and symlinks should be treated the same when compiling ↵David Heinemeier Hansson2006-07-052-63/+134
| | | | | | templates (closes #5438) [zachary@panandscan.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added special case for "1 Byte" in NumberHelper#number_to_human_size (closes ↵David Heinemeier Hansson2006-07-051-0/+1
| | | | | | #5593) [murpyh@rubychan.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4748@asus: jeremy | 2006-06-29 22:40:35 -0700Jeremy Kemper2006-06-301-1/+1
| | | | | | | Loosen urlencoded content type check. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add route_name_path method to generate only the path for a named routes. For ↵Nicholas Seckar2006-06-301-2/+11
| | | | | | example, map.person will add person_path. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Determine the correct template_root for deeply nested components. Closes #2841.Jeremy Kemper2006-06-211-1/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that routes with *path segments in the recall can generate URLs. [Rick]Rick Olson2006-06-171-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash.create_from_xml(string) which will create a hash from a XML ↵David Heinemeier Hansson2006-06-161-7/+0
| | | | | | string and even typecast if possible [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add passing test to make sure unhandled requests don't load unnecessary ↵Rick Olson2006-06-161-6/+23
| | | | | | classes. Closed #5408. [nkriege@hotmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure passed routing options are not mutated by routing code. (closes #5314)Jamis Buck2006-06-071-3/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de