Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Skip Rack applications and redirects when generating urls | Andrew White | 2013-07-16 | 1 | -3/+3 |
| | | | | | | | | | | When generating an unnamed url (i.e. using `url_for` with an options hash) we should skip anything other than standard Rails routes otherwise it will match the first mounted application or redirect and generate a url with query parameters rather than raising an error if the options hash doesn't match any defined routes. Fixes #8018 | ||||
* | Revert "Integration tests support the OPTIONS http method" | Rafael Mendonça França | 2013-05-16 | 1 | -17/+1 |
| | | | | | | | | | | | | | | This reverts commit ad46884af567d6f8d6d8d777f372c39e81a560ba. Conflicts: actionpack/CHANGELOG.md actionpack/lib/action_dispatch/testing/integration.rb actionpack/test/controller/integration_test.rb Reason: It will conflict with a lot of test cases. Better to call `process` directly since this is a very uncommon HTTP method. Fixes #10638. | ||||
* | allow headers and env to be passed in `IntegrationTest`. | Yves Senn | 2013-03-13 | 1 | -0/+15 |
| | | | | Closes #6513. | ||||
* | Make sure to reset default_url_options | Akira Matsuda | 2013-01-22 | 1 | -1/+5 |
| | |||||
* | Ensure port is set when passed via the process method | Andrew White | 2013-01-15 | 1 | -0/+52 |
| | |||||
* | Move action_controller/vendor/html-scanner to action_view | Piotr Sarnacki | 2012-08-28 | 1 | -1/+1 |
| | | | | | | This is another step in moving Action View's dependencies in Action Pack to Action View itself. Also, HtmlScanner seems to be better suited for views rather than controllers. | ||||
* | Include routes.mounted_helpers into integration tests | Piotr Sarnacki | 2012-06-01 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | In integration tests, you might want to use helpers from engines that you mounted in your application. It's not hard to add it by yourself, but it's unneeded boilerplate. mounted_helpers are now included by default. That means that given engine mounted like: mount Foo::Engine => "/foo", :as => "foo" you will be able to use paths from this engine in tests this way: foo.root_path #=> "/foo" (closes #6573) | ||||
* | Refactor the handling of default_url_options in integration tests | Andrew White | 2012-05-10 | 1 | -0/+80 |
| | | | | | | | | | | | | This commit improves the handling of default_url_options in integration tests by making behave closer to how a real application operates. Specifically the following issues have been addressed: * Options specified in routes.rb are used (fixes #546) * Options specified in controllers are used * Request parameters are recalled correctly * Tests can override default_url_options directly | ||||
* | added an integration test that checks ActionController::UnknownFormat ↵ | Steven Soroka | 2012-05-06 | 1 | -0/+9 |
| | | | | renders 406 :not_acceptable | ||||
* | Remove default match without specified method | Jose and Yehuda | 2012-04-24 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964 | ||||
* | Add config.default_method_for_update to support PATCH | David Lee | 2012-02-22 | 1 | -1/+23 |
| | | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update. | ||||
* | Integration tests support the OPTIONS http method | Jeremy Kemper | 2012-02-19 | 1 | -1/+17 |
| | |||||
* | Exclude rack.request.form_vars from request.filtered_env | Chad Jolly | 2012-01-18 | 1 | -0/+33 |
| | |||||
* | AP tests should inherit from AS::TestCase | Aaron Patterson | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Revert "Make process reuse the env var passed as argument" | Santiago Pastorino | 2011-09-24 | 1 | -6/+5 |
| | | | | This reverts commit 0e4748cd415660eb91e63d50aa15cdd027c612dd. | ||||
* | fix creating an empty route on 1.8. Closes #1210 | Damien Mathieu | 2011-06-01 | 1 | -0/+6 |
| | |||||
* | Make process reuse the env var passed as argument | Santiago Pastorino | 2011-04-06 | 1 | -0/+8 |
| | |||||
* | use a method that actually exists | Aaron Patterson | 2010-10-01 | 1 | -1/+1 |
| | |||||
* | Remove deprecated stuff in ActionController | Carlos Antonio da Silva | 2010-09-26 | 1 | -6/+6 |
| | | | | | | 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. | ||||
* | Removed deprecated RouteSet API, still many tests fail | Piotr Sarnacki | 2010-09-05 | 1 | -1/+1 |
| | |||||
* | Use assert_respond_to because it has better error messaging | Neeraj Singh | 2010-05-18 | 1 | -2/+2 |
| | | | | | | [#4628 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix cookie access in integration tests with other host names | Joshua Peek | 2010-04-05 | 1 | -0/+45 |
| | |||||
* | * Change the object used in routing constraints to be an instance of | wycats | 2010-04-03 | 1 | -1/+1 |
| | | | | | | | | | | | ActionDispatch::Request rather than Rack::Request. * Changed ActionDispatch::Request#method to return a String, to be compatible with the Rack::Request superclass. * Changed ActionDispatch::Request#method to return the original method in the case of methodoverride and #request_method not to, to be compatible with Rack::Request | ||||
* | Fix stack overflow bug in integration test router helpers | Joshua Peek | 2010-03-30 | 1 | -0/+47 |
| | |||||
* | open_session can just return the a dup of the current context. | wycats | 2010-03-22 | 1 | -5/+3 |
| | | | | | At this point, its entire purpose in the open_session {} case was to delegate back to the IntegrationTest anyway. | ||||
* | Clarify cookie jar test | Jeremy Kemper | 2010-03-04 | 1 | -6/+1 |
| | |||||
* | ActionDispatch::Request deprecates #request_uri | Carl Lerche | 2010-03-03 | 1 | -1/+1 |
| | | | | * Refactored ActionPatch to use fullpath instead | ||||
* | Tweak the semantic of various URL related methods of ActionDispatch::Request | Carlhuda | 2010-03-03 | 1 | -2/+2 |
| | |||||
* | If IntegrationSession is initialized with an objects that responds to ↵ | Carlhuda | 2010-02-26 | 1 | -4/+2 |
| | | | | #routes, automatically extend the URL helpers from the RouteSet onto it | ||||
* | Rename named_url_helpers to url_helpers and url_helpers to url_for | Carlhuda | 2010-02-26 | 1 | -4/+4 |
| | |||||
* | Rename metaclass to singleton_class | Carlhuda | 2010-02-25 | 1 | -1/+1 |
| | |||||
* | Get URL helpers working again in integration tests. | Carlhuda | 2010-02-25 | 1 | -17/+7 |
| | |||||
* | WIP: Remove the global router | Carlhuda | 2010-02-25 | 1 | -3/+8 |
| | |||||
* | Make HEAD method masquerade as GET so requests are routed correctly | Joshua Peek | 2010-01-15 | 1 | -0/+13 |
| | |||||
* | Ruby 1.9: more constant lookup badness :( | Jeremy Kemper | 2009-11-04 | 1 | -1/+1 |
| | |||||
* | Start rewriting some internal tests to use the new routing dsl | Joshua Peek | 2009-10-20 | 1 | -1/+1 |
| | |||||
* | Make IntegrationTest::Runner propagate method_missing to ancestors. | George Ogata | 2009-10-15 | 1 | -0/+18 |
| | | | | | | | Fixes RSpec integration example groups, which mixes its Matchers module into ActiveSupport::TestCase. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Add custom "with_routing" to internal tests to fix reseting session after using | Joshua Peek | 2009-10-03 | 1 | -4/+1 |
| | | | | with_routing. This only affects our internal AP tests. | ||||
* | Allow integration test rack app to be set with "@app" ivar instead of using ↵ | Joshua Peek | 2009-09-26 | 1 | -1/+1 |
| | | | | open_session | ||||
* | Fix generic url rewriter in integration tests | Joshua Peek | 2009-09-25 | 1 | -0/+9 |
| | |||||
* | Avoid conflict with a "MetalTest" module used in tests | Joshua Peek | 2009-09-19 | 1 | -1/+1 |
| | |||||
* | Need to reset session in internal integration tests after altering the route set | Joshua Peek | 2009-09-06 | 1 | -0/+1 |
| | |||||
* | test depends on html-scanner | Jeremy Kemper | 2009-05-23 | 1 | -0/+1 |
| | |||||
* | Integrating Rack::MockSession (from Rack::Test) | Bryan Helmkamp | 2009-05-19 | 1 | -3/+3 |
| | |||||
* | Change integration test helpers to accept Rack environment instead of just ↵ | Pratik Naik | 2009-05-19 | 1 | -12/+12 |
| | | | | | | | HTTP Headers. Before : get '/path', {}, 'Accept' => 'text/javascript' After : get '/path', {}, 'HTTP_ACCEPT' => 'text/javascript' | ||||
* | Group integration test helpers and delegate other helpers to request and ↵ | Joshua Peek | 2009-04-30 | 1 | -11/+1 |
| | | | | response objects | ||||
* | Unify functional and integration tests cookie helpers | Joshua Peek | 2009-04-26 | 1 | -1/+1 |
| | |||||
* | Start to integrate some of the features in Rack::Test. | Joshua Peek | 2009-04-24 | 1 | -1/+1 |
| | | | | Eventually commit ActionDispatch::Test::MockRequest and ActionDispatch::Test:: UploadedFile upstream. | ||||
* | update rack fixture to be ruby 1.9 compat | Joshua Peek | 2009-03-15 | 1 | -2/+2 |
| | |||||
* | update rack fixture to be ruby 1.9 compat | Joshua Peek | 2009-03-15 | 1 | -1/+1 |
| |