aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3581 from amatsuda/metal_response_body_19José Valim2011-11-101-0/+6
|\ | | | | AC::Metal#response_body= stores different value in Ruby 1.8 and 1.9
| * A test case to ensure that AC::Metal#response_body= always wraps the given ↵Akira Matsuda2011-11-101-0/+6
| | | | | | | | value in an Array in both Ruby 1.8 and 1.9 (refs #3581)
* | Fix trouble using :subdomain in development environment when using ↵Bradford Folkens2011-11-081-0/+11
|/ | | | | | | | | | | | | | | | numeric addresses. See-also pull request #3561 from 3-1-stable Otherwise the following occurs: TypeError: can't convert nil into String /Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:75:in host_or_subdomain_and_domain' /Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:37:in url_for' /Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/routing/url_for.rb:147:in test_subdomain_may_be_accepted_with_numeric_host' /Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in run' /Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:426:in send' /Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:81:in run'
* Ensure that the format isn't applied twice to the cache key, else it becomes ↵Christopher Meiklejohn2011-10-311-0/+13
| | | | impossible to target with expire_action.
* Responders now return 204 No Content for API requests without a response ↵José Valim2011-10-261-10/+10
| | | | body (as in the new scaffold)
* ActionPack test fix for RBXArun Agrawal2011-10-241-1/+3
|
* / is allowed in URI fragmentsJeremy Kemper2011-10-131-2/+2
|
* Merge pull request #2219 from kommen/fix_fragment_caching_squashedSantiago Pastorino2011-10-131-0/+49
| | | | Fix fragment caching (squashed commits)
* Support symbol and string actions in AC#respond_to optionsAlexey Vakhov2011-10-111-1/+1
|
* JSON responder should return errors with :error rootDenis Odorcic2011-10-101-0/+26
|
* accept optional :host parameter to force_sslBen Scheirman2011-10-081-1/+21
|
* :subdomain can now be specified with a value of false in url_for, allowing ↵Kamil Sobieraj2011-10-041-0/+14
| | | | for subdomain(s) removal from the host during link generation. Closes #2025
* normalize arg for AC::TestCase tests class methodAlexey Vakhov2011-10-031-0/+16
|
* TestCase should respect the view_assigns API instead of pulling variables on ↵José Valim2011-10-021-0/+20
| | | | its own.
* Revert "Make process reuse the env var passed as argument"Santiago Pastorino2011-09-241-6/+5
| | | | This reverts commit 0e4748cd415660eb91e63d50aa15cdd027c612dd.
* Deprecate passing the template handler in the template name.José Valim2011-09-224-24/+20
| | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases.
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-223-9/+11
|
* all routes can be stored in the Journey Routes objectAaron Patterson2011-09-121-1/+1
|
* Use ensure instead of rescueMike Dillon2011-09-101-1/+1
|
* Add test for warning and CHANGELOG entryMike Dillon2011-09-101-0/+16
|
* Pull up a method we only use once.Aaron Patterson2011-09-081-5/+1
|
* Conditions must never be equalAaron Patterson2011-09-081-6/+1
|
* Merge pull request #2499 from akaspick/assert_select_email_fixJon Leighton2011-09-071-0/+19
|\ | | | | Fix assert_select_email to work on non-multipart emails as well as converting the Mail::Body to a string to prevent errors.
| * fix assert_select_email to work on non-multipart emails as well as ↵Andrew Kaspick2011-08-111-0/+19
| | | | | | | | converting the Mail::Body to a string to prevent errors.
* | Eliminate newlines in basic auth. fixes #2882Aaron Patterson2011-09-061-0/+8
| |
* | * is not allowed in windows file names. Closes #2574 #2847Santiago Pastorino2011-09-041-1/+1
| |
* | Add failing test case for #2654Andrew White2011-08-231-0/+17
| |
* | Don't modify params in place - fixes #2624Andrew White2011-08-231-0/+6
| |
* | Properly escape glob characters.Aaron Patterson2011-08-161-0/+14
| |
* | Use lazy load hooks to set parameter wrapping configuration. This means that ↵Jon Leighton2011-08-161-7/+0
| | | | | | | | it doesn't force Action Controller / Active Record to load, but it doesn't fail if they have already loaded. Thanks @josevalim for the hint.
* | Don't refer to ActionController::Base in the wrap_parameters initializer - ↵Jon Leighton2011-08-161-0/+7
| | | | | | | | use config object instead. Cuts about 15% off the load time. (#734)
* | Methods like status and location are interfering with redirect_to [Closes #2511]Franck Verrot2011-08-141-0/+5
| |
* | moving test_generate to an integration test with one assert per testAaron Patterson2011-08-122-108/+183
|/
* Fix the issue where default_url_options is being cached on test cases. ↵thoefer2011-08-011-0/+29
| | | | | | Closes #1872. Closes #2031. Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge pull request #2379 from arunagw/extra_require_removalSantiago Pastorino2011-07-311-1/+0
|\ | | | | Removing extra requires from the test. Already loaded in abstract_unit.
| * Removing extra requires from the test. Already loaded in abstract_unit.Arun Agrawal2011-07-311-1/+0
| |
* | remove extra require for 'active_support/dependencies' as it is required in ↵Vishnu Atrai2011-07-311-1/+0
|/ | | | abstract_unit.rb
* There is no need to be destructive with the passed-in options.thedarkone2011-07-281-0/+9
| | | | This fixes a bug that is caused by Resource/SingletonResource mangling resource options when using inline "multi"-resource declarations.
* - added ActionView::PartialRenderer#merge_path_into_partial(path, partial)Gaston Ramos2011-07-241-1/+1
| | | | fix issues/1951
* - added test case for issue:Gaston Ramos2011-07-241-0/+14
| | | | | https://github.com/rails/rails/issues/1951 Namespaced model partial_path is wrong in namespaced controllers
* Ensure that status codes are logged properlyJesse Storimer2011-07-181-0/+19
| | | | | | Needed to move AC::Metal::Instrumentation before AM::Metal::Rescue so that status codes rendered from rescue_from blocks are logged properly.
* Remove stream at the class level.José Valim2011-07-061-1/+1
| | | | | | This is because only template rendering works with streaming. Setting it at the class level was also changing the behavior of JSON and XML responses, closes #1337.
* provide a more explicit message when using url_for with nilDamien Mathieu2011-07-021-0/+7
| | | This fixes the problem of having a non-explicit message when the :location option is not provided in respond_with.
* Make sure respond_with with :js tries to render a template in all casesJosé Valim2011-06-301-6/+15
|
* Make send_file guess content-type from file extension, if type wasn't ↵Esad Hajdarevic2011-06-281-0/+19
| | | | supplied (Issue #1847). Update tests & documentation.
* Get the fixture_path from self.class instead of ActiveSupport::TestCase.David Chelimsky2011-06-251-0/+7
| | | | | | This allows test classes that are not subclasses of ActiveSupport::TestCase (like those in rspec-rails) to interact with with this variable without having to reference ActiveSupport::TestCase.
* Tests only after filters in cache sweepersJeroen Jacobs2011-06-221-0/+5
|
* remove meaningless assert trueNeeraj Singh2011-06-111-1/+0
|
* expected message should come firstNeeraj Singh2011-06-111-2/+2
|
* try not to use assert_blank when nil will wouldNeeraj Singh2011-06-111-2/+2
| | | | | | be considered as failure Test for specific value to the extent possible