aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* render_text may optionally append to the response body. render_javascript ↵Jeremy Kemper2006-10-091-0/+21
| | | | | | appends by default. This allows you to chain multiple render :update calls by setting @performed_render = false between them (awaiting a better public API). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rename test assertion to prevent shadowing. Closes #6306.Nicholas Seckar2006-10-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* one render per testJeremy Kemper2006-10-091-16/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that NumberHelper#number_to_delimiter should respect precision of ↵David Heinemeier Hansson2006-10-091-0/+9
| | | | | | higher than two digits (closes #6231) [phallstrom] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that caches_action breaks with file extensions (closes #6257) [Catfish]David Heinemeier Hansson2006-10-091-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that FormHelper#radio_button didn't respect an :id being passed in ↵David Heinemeier Hansson2006-10-091-0/+6
| | | | | | (closes #6266) [evansj] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added an html_options hash parameter to javascript_tag() and ↵David Heinemeier Hansson2006-10-091-0/+6
| | | | | | update_page_tag() helpers #6311 [tzaharia] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed escaping of backslashes in JavaScriptHelper#escape_javascript (closes ↵David Heinemeier Hansson2006-10-091-0/+1
| | | | | | #6302) [sven@c3d2.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that assert_select selects the wrong tag by its contents (closes ↵David Heinemeier Hansson2006-10-091-0/+17
| | | | | | #6332) [jgarber] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r5515@ks: jeremy | 2006-10-08 13:24:42 -0700Jeremy Kemper2006-10-081-0/+17
| | | | | | | | | #6281 r5516@ks: jeremy | 2006-10-08 13:29:49 -0700 respond_to :html doesn't assume .rhtml. Closes #6281. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate @responseJeremy Kemper2006-09-292-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate @headersJeremy Kemper2006-09-292-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate @cookiesJeremy Kemper2006-09-293-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_select_rjs decodes escaped unicode chars since the Javascript ↵Jeremy Kemper2006-09-291-0/+12
| | | | | | generators encode them. Closes #6240. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: @request will be removed after 1.2. Use the request method instead.Jeremy Kemper2006-09-296-93/+84
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* modify head so that you can specify a bare status code as the first parameterJamis Buck2006-09-281-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActionController::Base#head for rendering empty responses. Add support ↵Jamis Buck2006-09-282-1/+60
| | | | | | for symbolic status codes, as well as for having raw integer statuses expand with their default messages. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug that kept any before_filter except the first one from being able to ↵Rick Olson2006-09-272-0/+46
| | | | | | halt the before_filter chain. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure map.resources(:things, :new => { :new => :any }) correctly sets ↵Jamis Buck2006-09-261-5/+23
| | | | | | /things/new to be accessible by any method rather than creating another resource at /things/new;new git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* strip_links is case-insensitive. Closes #6285.Jeremy Kemper2006-09-261-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear the cache of possible controllers whenever Routes are reloaded.Nicholas Seckar2006-09-231-1/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Filters overhaul including meantime filter support for around filters. ↵Jeremy Kemper2006-09-222-15/+235
| | | | | | Closes #5949. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use ActiveRecordTestCaseJeremy Kemper2006-09-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use :dependent => :destroy rather than :dependent => trueJeremy Kemper2006-09-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update RJS render tests.Sam Stephenson2006-09-201-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix routing to respect user provided requirements and defaults when ↵Nicholas Seckar2006-09-201-1/+61
| | | | | | assigning default routing options (such as :action => 'index'). Closes #5950. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test default content type for implicit rjs template renderRick Olson2006-09-182-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that respond_to blocks will automatically set the content type to be ↵David Heinemeier Hansson2006-09-172-0/+32
| | | | | | the same as is requested [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper getters and setters for content type and charset [DHH] Added ↵David Heinemeier Hansson2006-09-175-5/+111
| | | | | | utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Declare file extensions exempt from layouts. Closes #6219.Jeremy Kemper2006-09-161-0/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* remove implicit primary actions - more pain than gain. test collection ↵Jeremy Kemper2006-09-141-23/+36
| | | | | | actions for other http methods. strip whitespace. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add chained replace/update support for assert_select_rjs [Rick Olson]Rick Olson2006-09-141-0/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that formatted routes for all verbs are created. Still needs to ↵David Heinemeier Hansson2006-09-131-6/+5
| | | | | | resolve two failing tests after this refactoring [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Skip params with empty names, such as the &=Save query string from <input ↵Jeremy Kemper2006-09-121-2/+11
| | | | | | type=submit/>. Closes #2569. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5094 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
* Update JavaScriptGenerator#show/hide/toggle/remove to new Prototype syntax ↵Thomas Fuchs2006-09-071-5/+12
| | | | | | for multiple ids, fixes #6068 [petermichaux@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update UrlWriter to support :only_path.Nicholas Seckar2006-09-061-2/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added passing test for using partials with an xml builderRick Olson2006-09-063-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of locals hash as it caused trouble with Builder, see ticket for moreDavid Heinemeier Hansson2006-09-061-22/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JavaScriptHelper#link_to_function and ↵David Heinemeier Hansson2006-09-061-0/+13
| | | | | | JavaScriptHelper#button_to_function to have the script argument be optional [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added access to nested attributes in RJS (closes #4548) [richcollins@gmail.com]David Heinemeier Hansson2006-09-041-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that AssetTagHelper#image_tag and others using compute_public_path ↵David Heinemeier Hansson2006-09-041-0/+9
| | | | | | should not modify the incoming source argument (closes #5102) [eule@space.ch] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Superseeded by action_caching_test (closes #5173)David Heinemeier Hansson2006-09-041-74/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that ↵David Heinemeier Hansson2006-09-041-7/+10
| | | | | | doesn't have an extension [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed default routing NoMethodError downcase for nil when default controller ↵David Heinemeier Hansson2006-09-041-0/+9
| | | | | | provided (closes #5400) [kajism@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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
* Fixed TextHelper#simple_format to deal with multiple single returns within a ↵David Heinemeier Hansson2006-09-041-0/+1
| | | | | | single paragraph (closes #5835) [moriq@moriq.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TextHelper#pluralize to handle 1 as a string (closes #5905) ↵David Heinemeier Hansson2006-09-041-0/+4
| | | | | | [rails@bencurtis.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4993 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved resolution of DateHelper#distance_of_time_in_words for better ↵David Heinemeier Hansson2006-09-041-41/+69
| | | | | | precision (closes #5994) [Bob Silva] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de