aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/integration.rb
Commit message (Collapse)AuthorAgeFilesLines
* Decorate responses from Rack Middleware and Rails Metal for the purposes of ↵Jesse Newland2008-12-171-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | integration testing. A test for the following Metal: class Poller < Rails::Rack::Metal def call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "text/plain"}, "Hello World!"] else super end end end might be tested like so: class PollerTest < ActionController::IntegrationTest test "poller returns hello world" do get "/poller" assert_response 200 assert_response :success assert_response :ok assert_equal "Hello World!", response.body end end [#1588 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Switch to Rack based session stores.Joshua Peek2008-12-151-2/+2
|
* Use Mime::JS in place of explicit 'text/javascript' [#1573 state:resolved]Seth Fitzsimmons2008-12-151-3/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix for Integration::Session follow_redirect! headers['location'] bug with ↵Christos Zisopoulos2008-12-101-1/+1
| | | | | | Rack [#1555 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Make integration test runner more Rack friendly and clean out old CGI cruftJoshua Peek2008-12-081-57/+96
|
* Boot out CGI Processor.Joshua Peek2008-12-041-2/+3
| | | | | * Add ActionController::CGIHandler as a backwards compatible CGI wrapper around Rack. * Also pull failsafe responder into ActionController::Failsafe middleware.
* Ensure Test::Unit::Assertions is availableJeremy Kemper2008-11-261-0/+1
|
* Use autoload instead of explicit requires for ActionControllerJoshua Peek2008-11-231-4/+0
|
* Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-2/+2
|
* call clear_active_connections! in :after_dispatch to give pooled connections ↵Aliaksey Kandratsenka2008-10-041-1/+1
| | | | | | | | | | | back This fixes connection pool exhaustion for web servers which create new thread per connection (e.g. Webrick). integration.rb changes are required to keep test transaction active for several requests. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1171 state:committed]
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-4/+4
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Switched integration test runner to use Rack processor instead of CGIJoshua Peek2008-08-201-44/+32
|
* Delegate xhr helper method to integration sessionJoshua Peek2008-08-191-1/+1
|
* Remove send! usage, relic of reverted 1.9 behaviorJeremy Kemper2008-07-281-1/+1
|
* Merge docrails changesPratik Naik2008-07-281-5/+13
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Performance: integration test benchmarking and profiling. [Jeremy Kemper]Jeremy Kemper2008-06-141-4/+5
|
* Merge docrails.Pratik Naik2008-05-251-9/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: ensure binary encoding for post body parsingJeremy Kemper2008-05-191-0/+4
|
* Ruby 1.9 compat: don't confuse with headers method callJeremy Kemper2008-04-011-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow file uploads in Integration Tests. Closes #11091 [RubyRedRick]Michael Koziarski2008-03-031-1/+49
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8978 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests use ActionController::Dispatcher rather than the old ↵Jeremy Kemper2007-12-221-2/+3
| | | | | | Dispatcher. Closes #10596. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added delete_via_redirect and put_via_redirect to integration testing ↵David Heinemeier Hansson2007-12-171-13/+28
| | | | | | (closes #10497) [philodespotos] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow headers[Accept] to be set by hand when calling xml_http_request ↵David Heinemeier Hansson2007-12-171-1/+1
| | | | | | (closes #10461) [BMorearty] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unnecessary route reload in integration tests, obsoleted by [7676]. ↵Michael Koziarski2007-11-191-1/+0
| | | | | | Closes #10094. [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unneeded code to disable optimisations. the defined?(request) stuff ↵Michael Koziarski2007-11-171-3/+0
| | | | | | takes care of this now. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor Integration::Runner behavior out of IntegrationTest. Introduce ↵Jeremy Kemper2007-11-011-72/+85
| | | | | | Session#request_count which counts processed requests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests: get_ and post_via_redirect take a headers hash. Closes #9130.Jeremy Kemper2007-10-271-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More Performant Cookie Regexp for Integration tests. [Ola Bini]Michael Koziarski2007-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missed post_via_redirect. References #6834Michael Koziarski2007-10-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Define get_via_redirect as well. Closes #6834 [colthorp]Michael Koziarski2007-10-131-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move ActionController::Routing.optimise_named_routes to ↵Rick Olson2007-10-031-1/+1
| | | | | | | | ActionController::Base.optimise_named_routes. Now you can set it in the config. ActionController::Routing::DynamicSegment#interpolation_chunk should call #to_s on all values before calling URI.escape. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Random hits from the style naziDavid Heinemeier Hansson2007-09-091-8/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed deprecated form of calling xml_http_request/xhr without the first ↵David Heinemeier Hansson2007-09-091-9/+0
| | | | | | argument being the http verb [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimise named route generation when using positional arguments. Closes ↵Michael Koziarski2007-09-091-0/+4
| | | | | | | | | | | | #9450 [Koz] This change delivers significant performance benefits for the most common usage scenarios for modern rails applications by avoiding the costly trip through url_for. Initial benchmarks indicate this is between 6 and 20 times as fast. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation tweaks and fixes. Closes #9454 [sur, kampers]Jeremy Kemper2007-08-311-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [6811]. Should be fixed instead of selectively reintroducing the ↵Jeremy Kemper2007-05-231-1/+0
| | | | | | deprecated environment variable. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Set RAW_POST_DATA in integration tests as expectedTobias Lütke2007-05-221-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests: alias xhr to xml_http_request and add a request_method ↵Jeremy Kemper2007-05-211-20/+30
| | | | | | argument instead of always using POST. Closes #7124. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Parse url-encoded and multipart requests ourselves instead of delegating to CGI.Jeremy Kemper2007-05-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pass stdinput to super.Jeremy Kemper2007-05-181-4/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActionController::Routing::Helpers, a module to contain common URL ↵Nicholas Seckar2007-05-121-1/+1
| | | | | | helpers such as polymorphic_url. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests: introduce methods for other HTTP methods. Closes #6353.Jeremy Kemper2007-02-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-1/+1
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure html_document is reset between integration test requests (closes ↵Jamis Buck2007-01-011-0/+2
| | | | | | #6834) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge [5641] to TrunkMichael Koziarski2006-11-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use Location rather than location header.Jeremy Kemper2006-11-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Still need the regular assertionsDavid Heinemeier Hansson2006-09-051-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de