aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix another regression related to the layout optimization.José Valim2011-12-081-1/+25
|
* Fix a regression and also fix broken test.José Valim2011-12-081-5/+5
|
* Fix warning for params_wrapper_test.kennyj2011-12-081-1/+1
|
* ParamsWrapper only wrap the accessible attributes when they were setJean-Francois Turcot2011-12-071-1/+28
|
* Fix bug in assert_template when using only `:layout` optionPrem Sichanugrist2011-12-062-1/+17
| | | | | | | | | | Currently if you're do this: assert_template :layout => "foo" Regardless of what layout you were using, the test will always pass. This was broken since the introduction of :layout option in [d9375f3f]. We have a lot of test cases in actionpack/test/controller/layout_test.rb that use this feature. This will make sure that those test cases are not true negative.
* Allowing string as url argument for expire_actionThomas von Deyen2011-12-061-0/+20
|
* Merge pull request #3861 from andyjeffries/masterJosé Valim2011-12-051-2/+2
|\ | | | | Named Routes shouldn't override existing ones (currently route recognition goes with the earliest match, named routes use the latest match)
| * Named Routes shouldn't override existing ones (currently route recognition ↵Andy Jeffries2011-12-051-2/+2
| | | | | | | | goes with the earliest match, named routes use the latest match)
* | use classify in ParamsWrapper to derive model name from controller namelest2011-12-051-0/+35
|/
* Fix for redirect_to to respect urls with a network path reference like ↵Overbryd2011-12-051-0/+10
| | | | "//asset.host.com/resources/1235" see issue #3856
* Merge branch 'exceptions' with the following features:José Valim2011-12-011-0/+1
|\ | | | | | | | | | | | | | | | | * A Railtie API for registering new exceptions and their respective status code (check Active Record railtie for an example) * Extraction of ShowExceptions middleware logging and debugging features into a middleware called DebugExceptions Conflicts: actionpack/CHANGELOG.md
| * Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-011-0/+1
| |
* | Revert "Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-011-2/+2
| | | | | | | | | | | | | | | | fresh_when/stale? conditional get methods from Action Pack" Needless indirection with no added value. This reverts commit 535853e83b9092078035a5abb2aa242fba815c05.
* | Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-011-2/+2
| | | | | | | | fresh_when/stale? conditional get methods from Action Pack
* | Allow fresh_when/stale? to take a record instead of an options hash [DHH]David Heinemeier Hansson2011-12-011-0/+46
|/
* fix method redefined warnings in testslest2011-11-302-12/+0
|
* Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time ↵José Valim2011-11-301-1/+12
| | | | a before callback halts.
* Revert the serializers API as other alternatives are now also under discussionJosé Valim2011-11-251-48/+0
|
* Merge branch 'serializers'José Valim2011-11-251-0/+48
|\ | | | | | | | | | | | | | | | | This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides. From José and Yehuda with love. Conflicts: railties/CHANGELOG.md
| * Rely solely on active_model_serializer and remove the fancy constant lookup.José Valim2011-11-231-1/+15
| |
| * Merge branch 'master' into serializersJosé Valim2011-11-235-11/+102
| |\
| * | Initial commit of serializer supportJose and Yehuda2011-10-151-0/+34
| | |
* | | Warnings removed. (ambiguous first argument)kennyj2011-11-241-3/+3
| |/ |/|
* | move show_detailed_exceptions? to Rescue modulelest2011-11-221-2/+2
| |
* | refactor show exceptions testslest2011-11-221-0/+59
| |
* | 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
| |