From 82d14064032136c84cc790db514a408d80ba2ccb Mon Sep 17 00:00:00 2001 From: Jon Roberts Date: Mon, 4 Nov 2024 11:52:38 -0500 Subject: [PATCH] miscellaneous --- config/environments/test.rb | 2 +- lib/tasks/deployment/99991023145114_store_deploy_time.rake | 2 +- spec/datatables/volunteer_datatable_spec.rb | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index e475b064ec..4b34af196c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -29,7 +29,7 @@ config.consider_all_requests_local = true config.action_controller.perform_caching = false # config.cache_store = :null_store - config.cache_store = :file_store, "#{Rails.root}/tmp/cache/" # default (when not set) + config.cache_store = :file_store, Rails.root.join("tmp/cache/").to_s # default (when not set) # Render exception templates for rescuable exceptions and raise for other exceptions. config.action_dispatch.show_exceptions = :rescuable diff --git a/lib/tasks/deployment/99991023145114_store_deploy_time.rake b/lib/tasks/deployment/99991023145114_store_deploy_time.rake index d97ba397a4..4c439465cf 100644 --- a/lib/tasks/deployment/99991023145114_store_deploy_time.rake +++ b/lib/tasks/deployment/99991023145114_store_deploy_time.rake @@ -8,7 +8,7 @@ namespace :after_party do if down_tasks.empty? Health.instance.update_attribute(:latest_deploy_time, Time.now) else - puts("failed tasks found, latest_deploy_time will not be updated!") + Rails.logger.info { "failed tasks found, latest_deploy_time will not be updated!" } end end end diff --git a/spec/datatables/volunteer_datatable_spec.rb b/spec/datatables/volunteer_datatable_spec.rb index f1df5f6523..8ad620b33b 100644 --- a/spec/datatables/volunteer_datatable_spec.rb +++ b/spec/datatables/volunteer_datatable_spec.rb @@ -73,6 +73,7 @@ context "with supervisors who have volunteers who have cases" do before :all do + # TODO: let it be instead? could remvoe db cleaner... DatabaseCleaner.strategy = :transaction DatabaseCleaner.start