Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add a new constructor for allocating test requests | Aaron Patterson | 2015-07-08 | 1 | -9/+9 |
| | |||||
* | make `env` a required parameter | Aaron Patterson | 2015-07-08 | 1 | -6/+6 |
| | |||||
* | pass cookies from the jar in the HTTP_COOKIE header | eileencodes | 2015-07-07 | 1 | -2/+0 |
| | | | | | we should be pushing the cookies in via headers rather than maintaining some object and "recycling" it. | ||||
* | Use released rack | Godfrey Chan | 2014-12-19 | 1 | -1/+1 |
| | | | | `rack.version` was bumped in https://github.com/rack/rack/commit/28e77c710ac2ddb35c436d78d72e28f28f964446 | ||||
* | Allow overriding of all headers from passed environment hash | Andrew White | 2013-07-25 | 1 | -0/+30 |
| | | | | | | | Allow REMOTE_ADDR, HTTP_HOST and HTTP_USER_AGENT to be overridden from the environment passed into `ActionDispatch::TestRequest.new`. Fixes #11590 | ||||
* | Integrate Action Pack with Rack 1.5 | Carlos Antonio da Silva | 2013-01-25 | 1 | -1/+1 |
| | | | | | | All ActionPack and Railties tests are passing. Closes #8891. [Carlos Antonio da Silva + Santiago Pastorino] | ||||
* | Remove tabs, use spaces :scissors: | Carlos Antonio da Silva | 2013-01-22 | 1 | -2/+2 |
| | | | | [ci skip] | ||||
* | Fix bug when Rails.application is defined but is nil. See #881 | Marc-Andre Lafortune | 2012-05-21 | 1 | -0/+7 |
| | |||||
* | assert nothing raised for setting a cookie value to nil in ActionDispatch | Bradford Folkens | 2011-07-14 | 1 | -0/+5 |
| | |||||
* | Ensure cookie keys are strings | Andrew White | 2011-06-05 | 1 | -0/+9 |
| | |||||
* | Refactor ActionController::TestCase cookies | Andrew White | 2011-06-04 | 1 | -6/+9 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | Improve testing of cookies in functional tests: | Andrew White | 2011-03-06 | 1 | -2/+2 |
| | | | | | | | | | - 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] | ||||
* | Expect Rack 1.1 | Joshua Peek | 2009-12-26 | 1 | -1/+1 |
| | |||||
* | Rack: HTTPS is either 'on' or 'off' as of ↵ | Jeremy Kemper | 2009-11-10 | 1 | -1/+1 |
| | | | | 9b7a0569e4067d0c23a00fc24273436e85c56d7f | ||||
* | Fix a few more 1.9 bugs. Rack 1.0.1 is required for 1.9 compliance but not ↵ | Yehuda Katz | 2009-10-15 | 1 | -1/+1 |
| | | | | release, so bundling 1.0.1 from git | ||||
* | rack-test 0.4.2 has rack 1.1.pre goodies, we'll use it instead | Joshua Peek | 2009-08-31 | 1 | -2/+2 |
| | |||||
* | Fix implicit ordering expectation | Jeremy Kemper | 2009-05-02 | 1 | -1/+1 |
| | |||||
* | Move TestRequest cookies accessor into AD TestRequest | Joshua Peek | 2009-04-30 | 1 | -0/+15 |
| | |||||
* | Depend on unreleased rack 1.1 | Joshua Peek | 2009-04-30 | 1 | -1/+1 |
| | |||||
* | Start moving TestRequest and TestResponse into ActionDispatch | Joshua Peek | 2009-04-30 | 1 | -0/+30 |