aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* code gardening: we have assert_(nil|blank|present), more concise, with ↵Xavier Noria2010-08-175-11/+11
| | | | better default failure messages - let's use them
* object/try should be required after abstract_unit to have AS in the load pathSantiago Pastorino2010-08-141-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-1421-64/+64
| | | | 's/[ \t]*$//' -i {} \;)
* adds missing requires for Object#tryXavier Noria2010-08-091-0/+1
|
* Use AS::OrderedHash when trusting in the order of the hashSantiago Pastorino2010-08-011-2/+3
|
* Fixed a globbed route issue where slashes were being escaped, causing ↵Brian Rose2010-07-211-0/+7
| | | | | | assert_routing to fail. [#5135 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Moved a few methods from RecordIdentifier to ActiveModel::NamingPiotr Sarnacki2010-07-211-40/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove assert_valid. It was already deprecated on Rails 2.3.José Valim2010-07-191-15/+0
|
* Exceptions from views should be rescued based on the original exception. If ↵Neeraj Singh2010-07-191-0/+27
| | | | | | | | a handler for original exception is missing then apply ActiveView::TemplateError [#2034 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix setting helpers_path to a string or pathnameJeremy Kemper2010-07-071-3/+3
|
* Adds tests for content negotiation change introduced in dc5300adb6d46252c26ePatrik Stenmark2010-07-041-0/+20
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move Rails module to abstract_unit to make test in isolation workSantiago Pastorino2010-06-281-3/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* URL fragments should not have safe characters escaped. Ref: Appendix A, ↵Andrew White2010-06-251-3/+9
| | | | | | | | http://tools.ietf.org/rfc/rfc3986.txt [#4762 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Just reading flash messages should not create a session if one does not ↵José Valim2010-06-251-3/+17
| | | | exist yet.
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-5/+5
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Fix controller_name for non default controller paths [#4901 state:resolved]knapo2010-06-231-0/+38
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make sure a namespaced <%= render form %> still renders the _form partial ↵Jan De Poorter2010-06-201-0/+11
| | | | | | [#4784 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-201-2/+21
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-142-2/+2
| | | | not "ActiveRecord"
* Ruby 1.9.1 compat: constant lookupJeremy Kemper2010-06-111-1/+1
|
* Moved test/controller/cookie_test.rb to test/dispatch/cookies_test.rbRizwan Reza2010-06-111-228/+0
|
* Missing method error doesn't specify which controller it is missing from ↵Alan Harper2010-06-101-1/+10
| | | | | | | | | [#4436 state:resolved] The error page shown when the method you are requesting on a controller doesn't specify which controller the method is missing from Signed-off-by: José Valim <jose.valim@gmail.com>