aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement Mime::Type#respond_to? (consistently with #method_missing)Evgeniy Dolzhenko2011-09-251-0/+2
|
* Fix named routes modifying argumentsPawel Pierzchala2011-09-221-0/+11
|
* all routes can be stored in the Journey Routes objectAaron Patterson2011-09-121-0/+1
|
* CookieJar is enumerable. fixes #2795Aaron Patterson2011-09-011-0/+16
|
* when calling url_for with a hash, additional (likely unwanted) values (such ↵Andrew Kaspick2011-08-111-0/+12
| | | | as :host) would be returned in the hash... calling #dup on the hash prevents this
* fixing wildcard path matching when wildcard is inside parenthesisAaron Patterson2011-07-261-0/+7
|
* Allow a route to have :format => trueErik Michaels-Ober2011-07-251-0/+7
| | | | | | When format is true, it is mandatory (as opposed to :format => false). This is currently not possible with resource routes, which automatically make format optional by default.
* Merge pull request #2245 from ↵Santiago Pastorino2011-07-251-0/+20
|\ | | | | | | | | davidtrogers/constraints_block_passed_to_following_routes_in_same_scope Memoizing @blocks & disposing of constraints options properly
| * Ensure the constraints block is only applied to the correct routeDave Rogers2011-07-251-0/+20
| | | | | | | | | | addresses issue #1907 - any routes that follow a route with a constraints block are inheriting the previous route's constraints.
* | Make polymorphic_url calls go through application helpers again.thedarkone2011-07-251-0/+12
|/ | | | This brings back the ability to overwrite/extend url generating methods in application heleprs.
* Check Accept and Content-Type headers before evaluating them in xhr ↵ogeidix2011-07-191-0/+6
| | | | | | requests. Closes #2119 An xhr request must have an "Accept" or "Content-type" header in order to be considered a request with valid_accept_header.
* assert nothing raised for setting a cookie value to nil in ActionDispatchBradford Folkens2011-07-141-0/+5
|
* Add has_key? and key? methods to CookieJar removed in 0ca69ca65f83b4bb34f8José Valim2011-06-301-0/+9
|
* No need to register again. As it's default now.Arun Agrawal2011-06-281-3/+3
| | | Removing gif from here because when it got unregister it start failing other places.
* Fix test to use Mime::ZipArun Agrawal2011-06-281-1/+1
|
* Use assert_equal instead of assert in uploaded file test.Lukáš Konarovský2011-06-151-1/+1
|
* all requests are utf-8. Don't use the external encoding.Damien Mathieu2011-06-141-6/+1
|
* encode the uploaded file's name in the default external encoding - Closes #869Damien Mathieu2011-06-141-0/+12
|
* remove warning: assigned but unused variableSantiago Pastorino2011-06-081-1/+0
|
* Add backward compatibility for testing cookiesAndrew White2011-06-051-2/+49
| | | | | | | | | | | | | | | | | | | This commit restores the ability to assign cookies for testing via @request.env['HTTP_COOKIE'] and @request.cookies, e.g: @request.env['HTTP_COOKIE'] = 'user_name=david' get :index assert_equal 'david', cookies[:user_name] and @request.cookies[:user_name] = 'david' get :index assert_equal 'david', cookies[:user_name] Assigning via cookies[] is the preferred method and will take precedence over the other two methods. This is so that cookies set in controller actions have precedence and are carried over between calls to get, post, etc.
* Ensure cookie keys are stringsAndrew White2011-06-051-0/+9
|
* Refactor ActionController::TestCase cookiesAndrew White2011-06-042-24/+21
| | | | | | | | | | | | | | | | | | 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.
* removed deprecated methods, and related tests, from ActionPackJosh Kalderimis2011-05-241-37/+0
|
* Replace references to ActiveSupport::SecureRandom with just SecureRandom, ↵Jon Leighton2011-05-231-1/+1
| | | | and require 'securerandom' from the stdlib when active support is required.
* adding teststeve2011-05-191-4/+8
|
* Dump and load rack-cache stuff.José Valim2011-05-171-0/+21
|
* Fix previous commit by allowing a proc to be given as response_body. This is ↵José Valim2011-05-101-5/+4
| | | | deprecated and is going to be removed in future releases.
* Merge pull request #446 from danielstutzman/response_body_is_procJosé Valim2011-05-101-0/+38
|\ | | | | New test: setting response_body to a Proc should be supported.
| * New test: setting response_body to a Proc should be supported.Daniel Stutzman2011-05-071-0/+38
| |
* | Logs should show overridden method; Issue 426David Lee2011-05-071-0/+7
| |
* | Don't pluralize, camelize.José Valim2011-05-061-2/+2
|/
* Fix renew feature on cookies.José Valim2011-05-041-0/+16
|
* Fix .subdomain regression.José Valim2011-05-041-0/+9
|
* Sets the HTTP charset parameter for rescue response.Matias Korhonen2011-05-031-0/+7
|
* Static middleware accepts cache control.José Valim2011-05-031-1/+7
|
* Multipart is now fixed in Rack.José Valim2011-05-031-14/+8
|
* Koz asked to test something crazy.José Valim2011-05-021-0/+12
|
* Add ignore_accept_header config to AD::Request.José Valim2011-05-021-0/+22
|
* Add `ActionController::ParamsWrapper` to wrap parameters into a nested hashPrem Sichanugrist2011-05-032-0/+91
| | | This will allow us to do a rootless JSON/XML request to server.
* Fix tests, main_app mounted helper must be defined explicitly now.Piotr Sarnacki2011-04-251-0/+1
|
* Do not inherit from Rack::Response, remove a shit-ton of unused code.José Valim2011-04-191-16/+0
|
* Make static faster as we don't have to serve multiple paths anymore.José Valim2011-04-151-32/+1
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
| | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | suggestion!
* Fix failing test case on masterPrem Sichanugrist2011-04-101-1/+1
| | | | It turned out that I overlook at some replacements ..
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Revert "Use freeze instead of close!"Santiago Pastorino2011-04-071-6/+0
| | | | This reverts commit 29592a7f09dda2e7e1e0a915d9230fe6a9b5c0af.
* cookies hereSantiago Pastorino2011-04-071-3/+3
|
* Use freeze instead of close!Santiago Pastorino2011-04-061-0/+6
|
* Delete useless argumentsSantiago Pastorino2011-04-061-6/+6
|