1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller
Shuhei Kagawa 1b0526eaac Return super in ActionController::Parameters.const_missing
The current implementation of ActionController::Parameters.const_missing
returns `ActionController::Parameters.always_permitted_parameters` even
if its `super` returns a constant without raising error. This prevents its
subclass in a autoloading module/class from taking advantage of
autoloading constants.

    class SomeParameters < ActionController::Parameters
      def do_something
        DefinedSomewhere.do_something
      end
    end

In the code above, `DefinedSomewhere` is to be autoloaded with
`Module.const_missing` but `ActionController::Parameters.const_missing`
returns `always_permitted_parameters` instead of the autoloaded
constant.

This pull request fixes the issue respecting `const_missing`'s `super`.
2015-03-28 10:40:58 +09:00
..
controller_fixtures
mime Migrating xhr methods to keyword arguments syntax 2015-02-01 16:07:42 +03:00
new_base Fix test messages use directly true, false and nil instead of their symbol 2015-03-19 23:47:58 +05:30
parameters Return super in ActionController::Parameters.const_missing 2015-03-28 10:40:58 +09:00
request Use request.session.id instead of request.session_options[:id] 2015-03-12 09:52:38 -05:00
action_pack_assertions_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
base_test.rb Consistent usage of spaces in hashes across our codebase 2015-01-29 12:19:41 -02:00
caching_test.rb Collections automatically cache and fetch partials. 2015-02-21 16:06:57 +01:00
content_type_test.rb Add with_default_charset helper. 2014-05-28 21:17:16 +08:00
default_url_options_with_before_action_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
filters_test.rb fix NameError in skip_filter. callback doesn't exist. 2015-02-27 09:03:31 +09:00
flash_hash_test.rb Migrate old flash behaviour 2015-01-30 09:47:03 +11:00
flash_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
force_ssl_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
helper_test.rb Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846 2015-01-31 23:12:41 -05:00
http_basic_authentication_test.rb Add test for HTTP basic authentication when no credential is given. 2015-01-24 07:17:11 +08:00
http_digest_authentication_test.rb Typos. return -> returns. [ci skip] 2013-12-03 13:31:36 -02:00
http_token_authentication_test.rb Allow authentication header to not have to specify 'token=' key. 2014-10-10 09:38:03 +08:00
integration_test.rb Fix kwargs warning in test_get_xml 2015-03-20 08:48:10 -04:00
live_stream_test.rb Skip the failing tests on Rubinius for now 2015-03-02 17:28:12 +01:00
localized_templates_test.rb Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846 2015-01-31 23:12:41 -05:00
log_subscriber_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
output_escaping_test.rb
params_wrapper_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
permitted_params_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
redirect_test.rb remove old unavailable link with relevant fix 2015-03-23 11:18:14 +05:30
render_js_test.rb Migrating xhr methods to keyword arguments syntax 2015-02-01 16:07:42 +03:00
render_json_test.rb Migrating xhr methods to keyword arguments syntax 2015-02-01 16:07:42 +03:00
render_other_test.rb Add and remove renderer inside the test to prevent leak. 2014-05-28 22:24:22 +08:00
render_test.rb Return true from head method 2015-03-12 14:39:22 -07:00
render_xml_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
renderer_test.rb ✂️ warning from controller renderer test 2015-01-31 17:48:55 -08:00
request_forgery_protection_test.rb Handle non-string authenticity tokens 2015-02-12 22:24:45 +02:00
required_params_test.rb Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration 2015-01-29 14:44:46 +02:00
rescue_test.rb
resources_test.rb Merge pull request #18665 from sgrif/sg-test-route-all 2015-02-20 09:44:09 -07:00
routing_test.rb Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards. 2015-02-03 20:51:40 +05:30
runner_test.rb
send_file_test.rb Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards. 2015-02-03 20:51:40 +05:30
show_exceptions_test.rb Fix failing tests for #19474 2015-03-23 13:15:59 +00:00
streaming_test.rb
test_case_test.rb Fix default headers in test responses 2015-02-25 09:49:25 -07:00
url_for_integration_test.rb Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards. 2015-02-03 20:51:40 +05:30
url_for_test.rb pass a config to the route set 2015-03-05 13:12:06 -08:00
url_rewriter_test.rb
webservice_test.rb Consistent usage of spaces in hashes across our codebase 2015-01-29 12:19:41 -02:00