aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
* Test correct method behaviour.Emilio Tagua2010-09-291-1/+5
|
* Merge remote branch 'miloops/warnings'José Valim2010-09-298-4/+20
|\
| * Remove methods to avoid warnings.Emilio Tagua2010-09-281-0/+2
| |
| * Redefine duplicated test name.Emilio Tagua2010-09-281-1/+1
| |
| * Remove more warnings on AP.Emilio Tagua2010-09-281-1/+1
| |
| * Define @title to avoid warnings.Emilio Tagua2010-09-281-0/+4
| |
| * Use instance_variable_defined? instead instance_variable_get in tests.Emilio Tagua2010-09-281-2/+2
| |
| * Initialize ivars in tests.Emilio Tagua2010-09-283-0/+3
| |
| * Remove more warnings by initializing variables in test.Emilio Tagua2010-09-281-0/+6
| |
| * Remove more warnings: no need to define attr_accessor if already exists. ↵Emilio Tagua2010-09-281-0/+1
| | | | | | | | Initialize ivar.
* | renderer calls object.to_json when rendering :json => object [#5655 ↵Diego Carrion2010-09-271-0/+13
|/ | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename duplicated test name.Emilio Tagua2010-09-271-1/+1
|
* Fix indentation.Emilio Tagua2010-09-271-19/+18
|
* Use parentheses when using assert_match followed by a regexp to avoid warnings.Emilio Tagua2010-09-277-24/+24
|
* Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-266-17/+18
| | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController.
* Fix logging when cache key contains % sign [#5570 state:resolved]Krekoten' Marjan2010-09-251-0/+16
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make redirect_to accept blocks [#5643 state:resolved]Nando Vieira2010-09-241-0/+38
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Exception handling more readableThiago Pradi2010-09-191-8/+8
| | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* removing some warningsAaron Patterson2010-09-182-6/+6
|
* Fix header capitalization by explicitly upcasing first letter of every word, ↵Maxim Chernyak2010-09-181-0/+11
| | | | and avoiding capitalize. [#5636 state:resolved]
* get csrf_meta_tag back to the generated layout in deference to existing ↵Xavier Noria2010-09-141-1/+1
| | | | printed material, chomp also the generated HTML to be faithful to the output before the refactor
* added block arguments to ActionController::Metal#useCollin Miller2010-09-121-0/+22
| | | | | | | | | | | Useful for cases such as warden, where a block configuration is taken. class SomeController < ApplicationController use RailsWarden::Manager do |manager| manager.default_strategies :facebook_oauth manager.failure_app = SomeController.action(:authorize) end end
* revises implementation and documentation of csrf_meta_tags, and aliases ↵Xavier Noria2010-09-111-2/+6
| | | | csrf_meta_tag to it for backwards compatibilty
* Cleanup Action Dispatch assertions testsCarlos Antonio da Silva2010-09-061-108/+37
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Cleanup deprecations in Action DispatchCarlos Antonio da Silva2010-09-062-28/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Cleanup deprecation warnings in Action ControllerCarlos Antonio da Silva2010-09-063-55/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove a few tests from old router that do not make sense with the new one.José Valim2010-09-052-67/+3
|
* Deleted test with extended regexp - it fails with no reason, probably ↵Piotr Sarnacki2010-09-051-21/+0
| | | | rack-mount is doing something weird with that regexp
* Fixed 2 broken tests for router.Łukasz Strzałkowski2010-09-051-3/+3
| | | | They were broken after rebase/merge
* This test is invalid for new routerŁukasz Strzałkowski2010-09-051-20/+0
|
* Removed tests for setting default value of *path in routeŁukasz Strzałkowski2010-09-051-25/+0
| | | | If we want to have this - we have to change Rack::Mount source
* Made test_generate passŁukasz Strzałkowski2010-09-051-9/+1
| | | | I've removed assertions with @routes.generate(:use_route => ...). I'm not 100% sure if not supporting :use_route in new router is intentional or it should rather be supported and backported from 2.3.x.
* If it's unused there's no reason to keep it commented. It will always remain ↵Łukasz Strzałkowski2010-09-051-11/+0
| | | | in git history, so removing it.
* Fixed routes to use new API in a few more actionpack testsPiotr Sarnacki2010-09-055-18/+56
|
* Removed rest of errors and failures in routing_test.rb. Almost all squashed, ↵Łukasz Strzałkowski2010-09-051-92/+79
| | | | only few left
* raise error on invalid HTTP methods or :head passed with :via in routesPiotr Sarnacki2010-09-051-1/+1
|
* Implemented resources :foos, :except => :all optionPiotr Sarnacki2010-09-051-3/+9
|
* Test for recognizing routes with http method setŁukasz Strzałkowski2010-09-051-1/+40
|
* Fixed about half of broken tests in routing_testŁukasz Strzałkowski2010-09-051-125/+82
|
* Fixed almost all resources testsPiotr Sarnacki2010-09-051-159/+213
|
* Fixed url_for testŁukasz Strzałkowski2010-09-051-1/+1
| | | | Added route which matches all: controller, action, id and format
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-0517-552/+536
|
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-024-4/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-024-0/+4
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove deprecated support to <% form_for %> and several ↵José Valim2010-08-293-77/+2
| | | | ActionController::Base methods.
* Ensure that inherited helper_methods are available after calling ↵Jesse Storimer2010-08-281-0/+31
| | | | | | clear_helpers [#5348 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Be sure to call helper :all just on direct children. (Tests by Jesse Storimer)José Valim2010-08-261-0/+12
|
* Reset symbolized path parameters when a test request is recycled [#5437 ↵Andrew White2010-08-241-0/+8
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Config is deprecated on 1.8.8 and 1.9.3 use RbConfigSantiago Pastorino2010-08-231-1/+1
|
* Support routing constraints in functional testsAndrew White2010-08-201-1/+1
| | | | | | | | | | Extend assert_recognizes and assert_generates to support passing full urls as the path argument. This allows testing of routing constraints such as subdomain and host within functional tests. [#5005 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>