aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Refactored url_for in AV to have its own instances of the helpers instead of ↵wycats2010-04-039-290/+285
| | | | proxying back to the controller. This potentially allows for more standalone usage of AV. It also kicked up a lot of dust in the tests, which were mocking out controllers to get this behavior. By moving it to the view, it made a lot of the tests more standalone (a win)
* Fix memory leak in dev modewycats2010-04-021-0/+8
|
* Maintain the usage of :as consistent in the router. Whenever it's supplied, ↵José Valim2010-04-021-8/+43
| | | | it changes the NAMED ROUTE. If you want to change the PATH, use :path instead. Example: resources :projects, :path => 'projetos'
* Fix error in number_with_precision with :significant option and zero value ↵Bernardo de Pádua2010-04-011-0/+9
| | | | | | [#4306 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* HTML safety: give a deprecation warning if an array of option tags is passed ↵Jeremy Kemper2010-03-311-0/+6
| | | | to select tag. Be sure to join the tag yourself and mark them .html_safe
* Deprecate cookie_verifier_secret in favor of config.cookie_secret allowing ↵José Valim2010-03-311-1/+1
| | | | signed cookies to work again.
* Add a test which ensures slugs in :id work.José Valim2010-03-311-0/+8
|
* Consistent routing languageJoshua Peek2010-03-308-120/+119
|
* Fix stack overflow bug in integration test router helpersJoshua Peek2010-03-301-0/+47
|
* Updated asset_template_path to asset_path and have it also support a String ↵wycats2010-03-281-1/+8
| | | | [#4247 state:resolved]
* Allow customisation of asset path generation using a proc.Craig R Webster2010-03-281-0/+9
| | | | | | | | | | | | | | | | Set config.action_controller.asset_path_template to a proc that takes one argument - the direct, unchanged asset path - and returns a path to that asset using the scheme that your assets require. This is useful if you have a setup which scales by introducing new application servers where the mtime of the asset files may not be the same as those of the asset files on your previous servers, but it does require your web servers to have knowledge of the asset template paths that you rewrite to so it's not suitable for out-of-the-box use. An example of configuring asset path generation and rewriting these paths using Apache is included in actionpack/lib/action_view/helpers/asset_tag_helper.rb. Signed-off-by: wycats <wycats@gmail.com>
* Add more tests and docs to uncountable routes. [#3930 state:resolved]Rizwan Reza2010-03-281-2/+4
|
* Add _index to named collection routes for uncountable resources (e.g. Sheep)Jan De Poorter2010-03-281-0/+9
| | | | Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
* html_tag option to wrap error_message_on text [#4283 state:resolved]Paco Guzman2010-03-281-0/+4
| | | Signed-off-by: wycats <wycats@gmail.com>
* Request#content_type exists in Rack::Request, and other parts of ↵wycats2010-03-282-7/+7
| | | | | | Rack::Request expect it to return a String. Split the Rails API so that Request#content_type returns a String, and Request#content_mime_type returns a Mime::Type object.
* Add constraints to resources in new routing DSLAndrew White2010-03-281-0/+26
| | | | Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
* Fixes a bug where error_messages_for was returning an empty div [#4048 ↵wycats2010-03-271-0/+4
| | | | state:resolved] (ht: Geoff Garside)
* Recovers error_messages for ActiveRecordInstanceTag. [#4078 state:resolved]Daniel Rodríguez Troitiño2010-03-271-0/+14
| | | Signed-off-by: wycats <wycats@gmail.com>
* Fix named routes for member actions of singleton resources [#4266 ↵Andrew White2010-03-271-0/+5
| | | | | state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* Tests method_missing to raise NameError. [#2522 state:resolved]Rizwan Reza2010-03-271-0/+16
| | | Signed-off-by: wycats <wycats@gmail.com>
* Add parameter defaults support to new routing DSL [#4265 state:resolved]Andrew White2010-03-271-0/+20
| | | Signed-off-by: wycats <wycats@gmail.com>
* Rails router automatically calculated for you the controller and named ↵José Valim2010-03-261-3/+11
| | | | | | | | | routes in the following scenarios: match "home/about" #=> maps to home#about with named route home_about_path match "about" #=> does not work because it cannot guess the controller match "about" => "home#about" #=> maps to home#about with named route home_about_path match "home/about", :as => "about" #=> maps to home#about with named route about_path
* open_session can just return the a dup of the current context.wycats2010-03-221-5/+3
| | | | | At this point, its entire purpose in the open_session {} case was to delegate back to the IntegrationTest anyway.
* Rename unsignificant to insignificant.José Valim2010-03-232-12/+12
|
* Current url helpers become actions in controller. Added a failing test case ↵José Valim2010-03-221-6/+17
| | | | for it.
* NumberHelper methods should now return html_safe strings (when the inputs ↵Bernardo de Pádua2010-03-221-22/+121
| | | | | | are valid numbers or are html_safe). Also adds :raise => true (used internaly) to make the number helpers throw InvalidNumberError when the given number is invalid. Signed-off-by: José Valim <jose.valim@gmail.com>
* Adds number_to_human and several improvements in NumberHelper. [#4239 ↵Bernardo de Pádua2010-03-222-70/+228
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make router shortcuts more polite to URLs starting with a leading slash.José Valim2010-03-221-0/+18
|
* Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack ↵wycats2010-03-195-7/+25
| | | | response was a String.
* Improve performance of the rendering stack by freezing formats as a sign ↵José Valim2010-03-193-19/+43
| | | | that they shouldn't be further modified.
* remove duplicated self.view_paths assingment on controller tests [#4206 ↵Santiago Pastorino2010-03-181-2/+2
| | | | | | state:commited] Signed-off-by: wycats <wycats@gmail.com>
* Return a valid Rack response from bare ActionController::MetalCarlhuda2010-03-181-0/+27
|
* Make render :partial, :layout consistent between AC and AVCarlhuda2010-03-181-11/+1
|
* All tests pass without memoizing view_contextCarlhuda2010-03-185-12/+23
|
* Sending the partial as info is no longer required.José Valim2010-03-181-2/+2
|
* Deleting and setting a cookie in the same request was brokenMathias Biilmann Christensen2010-03-171-0/+11
| | | | | | | | Made sure to remove a cookie from @deleted_cookies when set [#4211 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Modify assert_template to use notifications. Also, remove ↵Carlhuda2010-03-179-64/+72
| | | | ActionController::Base#template since it is no longer needed.
* Remove unneeded AV::Base and AV::Template monkey-patchesCarlhuda2010-03-171-3/+2
|
* Modify assert_template to use instrumentationCarlhuda2010-03-171-41/+0
|
* Install url helpers on module instance so they can be accessedJoshua Peek2010-03-171-0/+1
| | | | globally
* link_to_function is here to stayJoshua Peek2010-03-161-1/+30
|
* scope_key_by_partial fix for Ruby 1.9 when there's virtual_path [#4202 ↵Santiago Pastorino2010-03-162-0/+7
| | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix rendering of HTML partials inside JS templates [#4197 status:resolved]José Valim2010-03-161-0/+7
|
* translation method of TranslationHelper module returns always SafeBuffer ↵Santiago Pastorino2010-03-162-1/+9
| | | | | | [#4194 status:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* adds tests for #flush_output_bufferXavier Noria2010-03-161-2/+37
| | | | | | [#4196 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* adds tests for #captureXavier Noria2010-03-161-0/+23
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Some more tweaks on <% %>.Carlhuda2010-03-161-4/+4
| | | | * The cache helper is now semantically "mark this region for caching" * As a result, <% x = cache do %> no longer works
* Break a window :/Jeremy Kemper2010-03-155-7/+7
|
* Fix link_to with blockJeremy Kemper2010-03-151-4/+1
|
* Swear I ran this testJeremy Kemper2010-03-151-1/+1
|