aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_case.rb
Commit message (Collapse)AuthorAgeFilesLines
* Improve testing of cookies in functional tests:Andrew White2011-03-061-1/+10
| | | | | | | | | - cookies can be set using string or symbol keys - cookies are preserved across calls to get, post, etc. - cookie names and values are escaped - cookies can be cleared using @request.cookies.clear [#6272 state:resolved]
* class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-2/+4
| | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* Move @assigns from the controller to the test itselfSantiago Pastorino2010-11-061-0/+1
|
* Fix problems trying to functional test AC::Metal controllersSantiago Pastorino2010-11-061-2/+2
| | | | [#5393 state:committed]
* Reset assert_template instance variables between requests [#5832 state:resolved]Andrew White2010-10-181-0/+7
|
* Solve some warnings and a failing test.José Valim2010-10-031-0/+1
|
* Rely on Rack::Session stores API for more compatibility across the Ruby world.José Valim2010-10-031-3/+5
|
* no need of nil checkNeeraj Singh2010-09-301-1/+1
|
* Remove more warnings: no need to define attr_accessor if already exists. ↵Emilio Tagua2010-09-281-3/+5
| | | | Initialize ivar.
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-4/+0
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Avoid uninitialized variable warning.Emilio Tagua2010-09-271-1/+1
|
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-1/+5
|
* Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-261-1/+1
| | | | | | 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.
* escape constant namesJoost Baaij2010-08-261-4/+4
|
* Reset symbolized path parameters when a test request is recycled [#5437 ↵Andrew White2010-08-241-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Change returning with tapSantiago Pastorino2010-07-251-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Sessions should not be created until written to and session data should be ↵Michael Lovitt2010-06-231-0/+2
| | | | | | | | destroyed on reset. [#4938] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add support for specifying locals in view tests with assert template [#4927 ↵David Chelimsky2010-06-221-3/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-2/+2
|
* Reset request.parameters after assigning params for functional testsJeremy Kemper2010-06-061-2/+4
|
* Memoizing methods on request means we need to clear them out on recycle!wycats2010-06-041-3/+3
|
* Eliminate false positives when passing symbols to assert_templateDavid Chelimsky2010-05-031-1/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-4/+4
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* extract ActionController::TestCase::BehaviorDavid Chelimsky2010-04-261-126/+133
| | | | | | | | | | - this makes it possible for other test frameworks to hook into testing facilities provided by Rails without having to subclass AC::TestCase. [#4474 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* allow unsubscribe by name or subscription [#4433 state:resolved]David Chelimsky2010-04-241-0/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix missing dependency on Hash#to_querySantiago Pastorino2010-04-141-0/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add accessors for request and response so tests don't have to mess with ↵Michael Koziarski2010-04-091-0/+2
| | | | internal ivars
* Consistent routing languageJoshua Peek2010-03-301-5/+5
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* Get modules back into integration testsCarlhuda2010-03-171-1/+0
|
* Modify assert_template to use notifications. Also, remove ↵Carlhuda2010-03-171-0/+20
| | | | ActionController::Base#template since it is no longer needed.
* Mark bang instrumentations as something that you shuold not be listening to.José Valim2010-03-171-2/+2
|
* Modify assert_template to use instrumentationCarlhuda2010-03-171-0/+82
|
* RouteSet#rewrite => url_forJoshua Peek2010-03-091-1/+1
|
* Move AC::UrlRewriter onto route setJoshua Peek2010-03-091-17/+16
|
* Get rid of the instance-level URL rewriterwycats2010-03-091-2/+6
|
* Tweak the semantic of various URL related methods of ActionDispatch::RequestCarlhuda2010-03-031-8/+14
|
* Change the API for setting global options for #url_for to self.url_options = ↵Carlhuda2010-02-261-1/+1
| | | | | | { ... } This attr_accessor can be set in a before filter or in the action itself. Overwriting default_url_options still works but will output a deprecation notice.
* Continued effort to deglobalize the routerCarlhuda2010-02-251-1/+1
|
* WIP: Remove the global routerCarlhuda2010-02-251-5/+5
|
* Use ActionDispatch::Routing everywhereMartin Schürrer2010-02-211-1/+1
|
* Move Flash into middlewareJoshua Peek2010-01-151-1/+3
|
* Controller tests should always require view tests since they add behavior ↵Jeremy Kemper2010-01-041-0/+1
| | | | controllers expect
* Autoload AS test caseJoshua Peek2010-01-041-1/+0
|
* Autoload AC and AV test case classesJoshua Peek2010-01-041-1/+0
|
* Allow autoloads to opt out of eager loadingJoshua Peek2009-12-121-1/+0
|
* TestProcess belongs in ADJoshua Peek2009-12-121-2/+1
|
* Reorganize autoloads:Carlhuda2009-12-021-0/+348
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Reorganize ActionController folder structureJoshua Peek2009-01-271-199/+0
|