aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Move fragment caching from special helper methods to TemplateHandler. Closes ↵Jeremy Kemper2008-01-101-4/+4
| | | | | | #10754 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* UrlWriter respects relative_url_root. Closes #10748.Jeremy Kemper2008-01-101-4/+34
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't append the forgery token to an ajax request if it's serializing a ↵Michael Koziarski2008-01-081-0/+9
| | | | | | form, prevents duplicate tokens. Closes #10684 [macournoyer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8598 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: don't rely on Array#to_s to flatten and join as stringJeremy Kemper2008-01-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: cookie store delete sets nil value instead of empty stringJeremy Kemper2008-01-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: account for hash orderingJeremy Kemper2008-01-071-4/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: check dom equalityJeremy Kemper2008-01-071-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Filter procs must take 1 or 2 arguments. Raise ArgumentError otherwise.Jeremy Kemper2008-01-071-7/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The asset_host block takes the controller request as an optional second ↵Jeremy Kemper2008-01-061-1/+40
| | | | | | argument. Example: use a single asset host for SSL requests. Closes #10549. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support render :text => nil. Closes #6684.Jeremy Kemper2008-01-061-0/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵Jeremy Kemper2008-01-052-11/+2
| | | | | | | | | [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-0571-127/+84
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_response failures include the exception message. Closes #10688.Jeremy Kemper2008-01-051-0/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-032-73/+26
| | | | | | ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made fragment caching in views work for rjs and builder as well (closes ↵David Heinemeier Hansson2008-01-031-9/+141
| | | | | | #6642) [zsombor] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rendering of partials with layout when done from site layout (closes ↵David Heinemeier Hansson2008-01-033-2/+31
| | | | | | #9209) [antramm] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix atom_feed_helper to comply with the atom spec. Closes #10672 [xaviershay]Rick Olson2008-01-021-2/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct indentation in a couple spots. Closes #10671 [l.guidi, rick]Rick Olson2008-01-021-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix failing date helper test. Closes #10664 [Wesley Moxam]Jeremy Kemper2008-01-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixup mocha tests for 0.5.6. Closes #10602 [murphy, mikong]Jeremy Kemper2007-12-291-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that auto_link looks for ='s in url paths (Amazon urls have them). ↵Rick Olson2007-12-281-0/+1
| | | | | | Closes #10640 [bgreenlee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick ↵Jeremy Kemper2007-12-281-0/+1
| | | | | | Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 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
* Ruby 1.9 compat: file uploads. References #1689 [Frederick Cheung]Jeremy Kemper2007-12-272-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix HTML Sanitizer to allow trailing spaces in CSS style attributes. Closes ↵Rick Olson2007-12-231-1/+7
| | | | | | #10566 [wesley.moxam] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests use ActionController::Dispatcher rather than the old ↵Jeremy Kemper2007-12-221-1/+0
| | | | | | Dispatcher. Closes #10596. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add :default option to time_zone_select. Closes #10590.Jeremy Kemper2007-12-211-0/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rails 1.9 compat: asset tag helper testsJeremy Kemper2007-12-211-12/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: compiled templates testJeremy Kemper2007-12-211-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: note failing form options helper test, probably in html-scannerJeremy Kemper2007-12-211-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: text helperJeremy Kemper2007-12-213-19/+40
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: ENV.delete rather than assigning nilJeremy Kemper2007-12-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: move from the deprecated Base64 module to ↵Jeremy Kemper2007-12-182-4/+4
| | | | | | ActiveSupport::Base64. Closes #10554. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added delete_via_redirect and put_via_redirect to integration testing ↵David Heinemeier Hansson2007-12-171-11/+32
| | | | | | (closes #10497) [philodespotos] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow headers[Accept] to be set by hand when calling xml_http_request ↵David Heinemeier Hansson2007-12-171-0/+9
| | | | | | (closes #10461) [BMorearty] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added OPTIONS to list of default accepted HTTP methods (closes #10449) [holoway]David Heinemeier Hansson2007-12-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add tests for html_escape, and remove an unneeded backslash (closes #10511) ↵David Heinemeier Hansson2007-12-161-0/+56
| | | | | | [fxn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to pass proc to ActionController::Base.asset_host for maximum ↵David Heinemeier Hansson2007-12-161-3/+36
| | | | | | configurability (closes #10521) [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mark that render tests crash Ruby 1.9Jeremy Kemper2007-12-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: helpersJeremy Kemper2007-12-151-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Note that filters test crashes Ruby 1.9Jeremy Kemper2007-12-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: account for new, non-flattening Array#to_sJeremy Kemper2007-12-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixes for standalone testsJeremy Kemper2007-12-152-3/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: cookiesJeremy Kemper2007-12-151-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that ActionView#file_exists? would be incorrect if @first_render is ↵David Heinemeier Hansson2007-12-141-0/+18
| | | | | | set (closes #10569) [dbussink] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More Action View refactoring. Knock :erb default down a notch. Closes #10455.Jeremy Kemper2007-12-101-12/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missed commit. Closes #10437.Jeremy Kemper2007-12-101-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8373 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix up template handler tests. Closes #10437.Jeremy Kemper2007-12-102-6/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8372 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 ↵Jeremy Kemper2007-12-101-9/+9
| | | | | | [Pratik Naik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render :xml and :json preserve custom content types. Closes #10388.Jeremy Kemper2007-12-091-10/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de