From 0cf970dafda39dcdf21d0ce51c1f3ddfeeaf6045 Mon Sep 17 00:00:00 2001 From: Jordan Brough Date: Thu, 24 Mar 2022 02:01:19 -0600 Subject: [PATCH] chore: Eliminate deprecation warning in "app_config_controller_spec.rb" (#4258) Fix the warning: Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. --- spec/controllers/super_admin/app_config_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/super_admin/app_config_controller_spec.rb b/spec/controllers/super_admin/app_config_controller_spec.rb index 3a81ac7d3..9cf7b9075 100644 --- a/spec/controllers/super_admin/app_config_controller_spec.rb +++ b/spec/controllers/super_admin/app_config_controller_spec.rb @@ -37,7 +37,7 @@ RSpec.describe 'Super Admin Application Config API', type: :request do post '/super_admin/app_config', params: { app_config: { TESTKEY: 'TESTVALUE' } } expect(response.status).to eq(302) - expect(response).should redirect_to(super_admin_app_config_path) + expect(response).to redirect_to(super_admin_app_config_path) config = GlobalConfig.get('TESTKEY') expect(config['TESTKEY']).to eq('TESTVALUE')