aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/integration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the handling of default_url_options in integration testsAndrew White2012-05-101-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 Soroka2012-05-061-0/+9
| | | | renders 406 :not_acceptable
* Remove default match without specified methodJose and Yehuda2012-04-241-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 PATCHDavid Lee2012-02-221-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 methodJeremy Kemper2012-02-191-1/+17
|
* Exclude rack.request.form_vars from request.filtered_envChad Jolly2012-01-181-0/+33
|
* AP tests should inherit from AS::TestCaseAaron Patterson2012-01-051-2/+2
|
* Revert "Make process reuse the env var passed as argument"Santiago Pastorino2011-09-241-6/+5
| | | | This reverts commit 0e4748cd415660eb91e63d50aa15cdd027c612dd.
* fix creating an empty route on 1.8. Closes #1210Damien Mathieu2011-06-011-0/+6
|
* Make process reuse the env var passed as argumentSantiago Pastorino2011-04-061-0/+8
|
* use a method that actually existsAaron Patterson2010-10-011-1/+1
|
* Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-261-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 failPiotr Sarnacki2010-09-051-1/+1
|
* Use assert_respond_to because it has better error messagingNeeraj Singh2010-05-181-2/+2
| | | | | | [#4628 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix cookie access in integration tests with other host namesJoshua Peek2010-04-051-0/+45
|
* * Change the object used in routing constraints to be an instance ofwycats2010-04-031-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 helpersJoshua Peek2010-03-301-0/+47
|
* open_session can just return the a dup of the current context.wycats2010-03-221-5/+3
| | | | | At this point, its entire purpose in the open_session {} case was to delegate back to the IntegrationTest anyway.
* Clarify cookie jar testJeremy Kemper2010-03-041-6/+1
|
* ActionDispatch::Request deprecates #request_uriCarl Lerche2010-03-031-1/+1
| | | | * Refactored ActionPatch to use fullpath instead
* Tweak the semantic of various URL related methods of ActionDispatch::RequestCarlhuda2010-03-031-2/+2
|
* If IntegrationSession is initialized with an objects that responds to ↵Carlhuda2010-02-261-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_forCarlhuda2010-02-261-4/+4
|
* Rename metaclass to singleton_classCarlhuda2010-02-251-1/+1
|
* Get URL helpers working again in integration tests.Carlhuda2010-02-251-17/+7
|
* WIP: Remove the global routerCarlhuda2010-02-251-3/+8
|
* Make HEAD method masquerade as GET so requests are routed correctlyJoshua Peek2010-01-151-0/+13
|
* Ruby 1.9: more constant lookup badness :(Jeremy Kemper2009-11-041-1/+1
|
* Start rewriting some internal tests to use the new routing dslJoshua Peek2009-10-201-1/+1
|
* Make IntegrationTest::Runner propagate method_missing to ancestors.George Ogata2009-10-151-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 usingJoshua Peek2009-10-031-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 Peek2009-09-261-1/+1
| | | | open_session
* Fix generic url rewriter in integration testsJoshua Peek2009-09-251-0/+9
|
* Avoid conflict with a "MetalTest" module used in testsJoshua Peek2009-09-191-1/+1
|
* Need to reset session in internal integration tests after altering the route setJoshua Peek2009-09-061-0/+1
|
* test depends on html-scannerJeremy Kemper2009-05-231-0/+1
|
* Integrating Rack::MockSession (from Rack::Test)Bryan Helmkamp2009-05-191-3/+3
|
* Change integration test helpers to accept Rack environment instead of just ↵Pratik Naik2009-05-191-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 Peek2009-04-301-11/+1
| | | | response objects
* Unify functional and integration tests cookie helpersJoshua Peek2009-04-261-1/+1
|
* Start to integrate some of the features in Rack::Test.Joshua Peek2009-04-241-1/+1
| | | | Eventually commit ActionDispatch::Test::MockRequest and ActionDispatch::Test:: UploadedFile upstream.
* update rack fixture to be ruby 1.9 compatJoshua Peek2009-03-151-2/+2
|
* update rack fixture to be ruby 1.9 compatJoshua Peek2009-03-151-1/+1
|
* Update bundled Rack for Ruby 1.9 spec changesJoshua Peek2009-02-071-1/+1
|
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-4/+0
|
* Use Rack::Head middleware to ensure the body is discarded for HEAD requestsJoshua Peek2009-02-011-0/+14
|
* Revert "HTTP Digest authentication [#1230 state:resolved]"Pratik Naik2009-01-131-88/+0
| | | | | | | | | This reverts commit 45dee3842d68359a189fe7c0729359bd5a905ea4. Reasons : 1. The code is not working in it's current state 2. Should not be using exceptions for flow control
* Bump Rack version to 0.9Joshua Peek2009-01-061-3/+3
|
* HTTP Digest authentication [#1230 state:resolved]Joshua Peek2008-12-281-0/+88
|
* Fix metal testsJoshua Peek2008-12-171-7/+3
|