diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2019-04-22 16:05:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 16:05:51 -0500 |
commit | 216ef01d149e379478b67f517d7b970055339085 (patch) | |
tree | 88c369c7bb22a8a9814dffb06eeb1f25a7c2e865 /railties/test/application/configuration_test.rb | |
parent | 45a6cf3e038614cd415cbd1f09d5647c739aac23 (diff) | |
parent | 7814d1c0ae63428fecc3df79bec3903a6e8857d0 (diff) | |
download | rails-216ef01d149e379478b67f517d7b970055339085.tar.gz rails-216ef01d149e379478b67f517d7b970055339085.tar.bz2 rails-216ef01d149e379478b67f517d7b970055339085.zip |
Merge pull request #36038 from st0012/fix-35602
Include Caching module for ActionController::API
Diffstat (limited to 'railties/test/application/configuration_test.rb')
-rw-r--r-- | railties/test/application/configuration_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 62d9b1c813..0ddf299875 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -2216,6 +2216,19 @@ module ApplicationTests assert_equal :default, Rails.configuration.debug_exception_response_format end + test "action_controller.cache_store works for api_only app as well" do + add_to_config <<-RUBY + config.api_only = true + config.action_controller.cache_store = :memory_store + RUBY + + app "development" + + api_controller = Class.new(ActionController::API) + + assert_equal(api_controller.cache_store.class, ActiveSupport::Cache::MemoryStore) + end + test "controller force_ssl declaration can be used even if session_store is disabled" do make_basic_app do |application| application.config.session_store :disabled |