aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing
Commit message (Collapse)AuthorAgeFilesLines
...
* Added ability to set asset_path for enginesPiotr Sarnacki2010-09-031-1/+1
|
* Expanded routing documentation with current best practicesJoost Baaij2010-08-291-5/+5
|
* The call-seq directive has no useful effect on our documentation and is not ↵Joost Baaij2010-08-281-19/+0
| | | | | | | | | | | used anywhere else. Worse still, its use breaks some rdoc, replacing method names with a curly brace. Having just one call-seq directive doesn't add anything since this is covered by regular rdoc. Having multiple might make sense, but these are already documented with examples. This partly re-reverts 60de0e56b7f57f0052d7e4f43bd2ef9e363c6a1a but does not touch the vendorized code in html-scanner.
* Revert "call-seq directive makes rdoc cry and replaces method names with a ↵Xavier Noria2010-08-271-9/+28
| | | | | | | | curly brace; besides it doesn't add anything when you only list one call example since this is obviously documented already" Reason: Part of this commit touches vendorized stuff, the rest is fine, could you please repatch? This reverts commit 60de0e56b7f57f0052d7e4f43bd2ef9e363c6a1a.
* escape constants that should not be linked toJoost Baaij2010-08-273-8/+8
|
* call-seq directive makes rdoc cry and replaces method names with a curly ↵Joost Baaij2010-08-271-28/+9
| | | | brace; besides it doesn't add anything when you only list one call example since this is obviously documented already
* Support routing constraints in functional testsAndrew White2010-08-201-14/+37
| | | | | | | | | | Extend assert_recognizes and assert_generates to support passing full urls as the path argument. This allows testing of routing constraints such as subdomain and host within functional tests. [#5005 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* adds missing requires for Object#tryXavier Noria2010-08-091-0/+1
|
* Change returning with tapSantiago Pastorino2010-07-251-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove assert_valid. It was already deprecated on Rails 2.3.José Valim2010-07-192-21/+0
|
* Remove unused variable on assert_recognizes [#4912 state:resolved]Paco Guzman2010-06-221-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* removed 'unless const_defined?' code smellJosh Kalderimis2010-06-211-23/+19
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-112-3/+3
|
* regular expressions are usually ASCII-encoded, so force_encoding the content ↵wycats2010-06-071-2/+0
| | | | of a Node to the encoding of the regular expression is wrong.
* fix assert_select messages to its declaration behaviourPaco Guzman2010-05-151-5/+11
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Some require indifferent_access addedSantiago Pastorino2010-04-212-0/+2
| | | | Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
* access assigns as a method or hash, with strings or symbols [#4431 ↵David Chelimsky2010-04-171-2/+2
| | | | state:resolved]
* Fix cookie access in integration tests with other host namesJoshua Peek2010-04-051-7/+21
|
* moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵Xavier Noria2010-04-051-1/+1
| | | | there, same for #class_eval to simplify, and adds coverage for class_eval
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-051-0/+2
| | | | configuration in request.env. This is another step forward removing global configuration.
* * Change the object used in routing constraints to be an instance ofwycats2010-04-031-1/+2
| | | | | | | | | | | 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
* Add a test which ensures action_dispatch.show_exceptions is properly disabled.José Valim2010-04-021-3/+1
|
* Consistent routing languageJoshua Peek2010-03-301-10/+10
|
* Fix stack overflow bug in integration test router helpersJoshua Peek2010-03-301-1/+1
|
* Merge remote branch 'rizwan/restrict'wycats2010-03-281-0/+2
|\
| * adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
| |
* | Rails 3 application can run performance tests now. [#4171 state:resolved]Rizwan Reza2010-03-281-1/+3
|/
* open_session can just return the a dup of the current context.wycats2010-03-221-24/+3
| | | | | At this point, its entire purpose in the open_session {} case was to delegate back to the IntegrationTest anyway.
* Each controller class has it's own view context subclass. This removes the ↵Carlhuda2010-03-181-3/+4
| | | | need for ActionView::Base.for_controller
* All tests pass without memoizing view_contextCarlhuda2010-03-181-3/+2
|
* Get modules back into integration testsCarlhuda2010-03-171-0/+3
|
* Fix for missing dependency in ActionDispatch::IntegrationMathias Biilmann Christensen2010-03-171-0/+1
| | | | | | | | | | | When running cucumber features from a new rails 3 app requiring 'cucumber/rails/world' would raise: uninitialized constant ActionDispatch::Integration::Session::Test (NameError) Fixed by requiring 'test/unit/assertions' in action_dispatch/integration Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Modify assert_template to use instrumentationCarlhuda2010-03-171-52/+0
|
* Do not always include the named URL helpers into AC::Base and AV::Base.Carl Lerche2010-03-161-2/+16
|
* Integration test url options should account for :protocol not just https?Jeremy Kemper2010-03-151-8/+2
|
* No longer add missing leading / on path args to assert_redirected_to. ↵Jeremy Kemper2010-03-021-9/+14
| | | | Deprecated in 2.3.6.
* Remind us that RoutingAssertions should work in an integration contextYehuda Katz2010-02-261-0/+1
|
* If IntegrationSession is initialized with an objects that responds to ↵Carlhuda2010-02-261-7/+21
| | | | #routes, automatically extend the URL helpers from the RouteSet onto it
* Setting UrlFor in with_routing is no longer needed now that it's not globalCarlhuda2010-02-261-3/+0
|
* Remove traces of SharedTestRoutes from user code; leave it as a standin for ↵Carlhuda2010-02-261-12/+0
| | | | Rails.application.routes in Rails internal tests
* Change the API for setting global options for #url_for to self.url_options = ↵Carlhuda2010-02-261-1/+1
| | | | | | { ... } This attr_accessor can be set in a before filter or in the action itself. Overwriting default_url_options still works but will output a deprecation notice.
* Rename named_url_helpers to url_helpers and url_helpers to url_forCarlhuda2010-02-261-3/+3
|
* Rename metaclass to singleton_classCarlhuda2010-02-251-1/+1
|
* Get URL helpers working again in integration tests.Carlhuda2010-02-251-24/+24
|
* Final pass at removing the router from a global constantCarlhuda2010-02-252-3/+1
|
* WIP: Remove the global routerCarlhuda2010-02-252-17/+20
|
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-2/+2
|
* Use ActionDispatch::Routing everywhereMartin Schürrer2010-02-212-13/+13
|
* Fix a bunch of pending tests by providing an introspection mode for the ↵Carlhuda2010-02-191-1/+2
| | | | Response object that does up-front parsing of the headers to populate things like @etag
* AD::TestProcess relies on request.flash, so let's load it.José Valim2010-02-161-0/+2
|