rails/actionpack/test/controller
Andrew White d4658d86fe Refactor ActionController::TestCase cookies
Assigning cookies for test cases should now use cookies[], e.g:

  cookies[:email] = 'user@example.com'
  get :index
  assert_equal 'user@example.com', cookies[:email]

To clear the cookies, use clear, e.g:

  cookies.clear
  get :index
  assert_nil cookies[:email]

We now no longer write out HTTP_COOKIE and the cookie jar is
persistent between requests so if you need to manipulate the environment
for your test you need to do it before the cookie jar is created.
2011-06-04 07:09:11 +01:00
..
controller_fixtures New routes implementation. Simpler, faster, easier to understand. The published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes. 2006-06-01 15:42:08 +00:00
new_base Corrected some typos and American vs. Queen's English issues 2011-05-29 12:40:24 -07:00
request cleaning up some warnings on 1.9.3 2011-02-07 16:44:27 -08:00
action_pack_assertions_test.rb fix warning during test execution 2010-11-17 20:19:07 -02:00
addresses_render_test.rb Fix isolated running of AddressesTest 2009-09-06 21:42:05 -05:00
assert_select_test.rb removes support for render :update 2011-04-13 13:23:17 +02:00
base_test.rb Removed deprecated RouteSet API, still many tests fail 2010-09-05 13:44:36 +02:00
caching_test.rb Always initialize @title in caching test to avoid uninitialized instance variable warning 2011-05-22 23:14:52 -07:00
capture_test.rb Test correct method behaviour. 2010-09-29 12:42:51 -03:00
content_type_test.rb removes the RJS template handler 2011-04-13 13:23:18 +02:00
filters_test.rb Fix filter :only and :except with implicit actions 2011-03-23 23:32:44 +00:00
flash_hash_test.rb many args does not make sense with the current implementation because of how use works 2011-04-06 18:13:16 -07:00
flash_test.rb Don't reuse a closed flash when using now 2011-04-20 04:32:26 +08:00
force_ssl_test.rb Add controller-specific force_ssl method to force web browser to use HTTPS protocol 2011-03-28 04:58:47 +08:00
helper_test.rb removed deprecated methods, and related tests, from ActionPack 2011-05-24 23:38:59 +02:00
http_basic_authentication_test.rb Added Base.http_basic_authenticate_with to do simple http basic authentication with a single class method call [DHH] 2011-03-28 18:10:08 -07:00
http_digest_authentication_test.rb Rename config.cookie_secret to config.secret_token and pass it as configuration in request.env. This is another step forward removing global configuration. 2010-04-05 12:00:24 +02:00
http_token_authentication_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
integration_test.rb fix creating an empty route on 1.8. Closes #1210 2011-06-01 15:51:36 +02:00
layout_test.rb Deprecate old template handler API. Remove old handlers. 2010-10-10 01:14:50 +02:00
localized_templates_test.rb Fixed that default locale templates should be used if the current locale template is missing [DHH] 2010-04-08 18:11:26 -07:00
log_subscriber_test.rb renamed the wrap_parameters :only and :except options to :include and :exclude to make it consistent with controller filters 2011-05-19 10:33:25 -04:00
mime_responds_test.rb don't raise an exception if the format isn't recognized 2011-05-26 11:18:30 +02:00
output_escaping_test.rb code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them 2010-08-17 03:32:11 +02:00
params_wrapper_test.rb renamed the wrap_parameters :only and :except options to :include and :exclude to make it consistent with controller filters 2011-05-19 10:33:25 -04:00
record_identifier_test.rb moving fake model to the correct file 2010-10-03 14:40:06 -07:00
redirect_test.rb delete repeated code 2010-10-01 18:01:34 -07:00
render_js_test.rb removes support for render :update 2011-04-13 13:23:17 +02:00
render_json_test.rb render_to_string must ensure that response_body 2011-01-25 20:14:03 +01:00
render_other_test.rb removes support for render :update 2011-04-13 13:23:17 +02:00
render_test.rb removed deprecated methods, and related tests, from ActionPack 2011-05-24 23:38:59 +02:00
render_xml_test.rb Removed deprecated RouteSet API, still many tests fail 2010-09-05 13:44:36 +02:00
request_forgery_protection_test.rb Replace references to ActiveSupport::SecureRandom with just SecureRandom, and require 'securerandom' from the stdlib when active support is required. 2011-05-23 20:25:44 +01:00
rescue_test.rb removing more duplicate code 2010-10-01 18:05:59 -07:00
resources_test.rb Using Object#in? and Object#either? in various places 2011-04-11 03:17:09 +08:00
routing_test.rb raise an error if the old router draw method is used, along with a message advising them to either upgrade their routes or add rails_legacy_mapper to their Gemfile 2011-05-03 16:07:25 +02:00
runner_test.rb adding a test for the runner module [#6027 state:resolved] 2010-11-22 15:57:03 -08:00
selector_test.rb Rename duplicated test name. 2010-09-27 11:19:24 -03:00
send_file_test.rb Use assert_respond_to because it has better error messaging 2010-05-18 02:12:06 +02:00
test_test.rb Refactor ActionController::TestCase cookies 2011-06-04 07:09:11 +01:00
url_for_test.rb Filter params that return nil for to_param and allow through false values 2011-03-09 14:44:25 +00:00
url_rewriter_test.rb Removed deprecated RouteSet API, still many tests fail 2010-09-05 13:44:36 +02:00
view_paths_test.rb removed deprecated methods, and related tests, from ActionPack 2011-05-24 23:38:59 +02:00
webservice_test.rb use spec compliant YAML 2011-01-21 15:43:34 -08:00