mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	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.
			
			
This commit is contained in:
		@@ -37,7 +37,7 @@ RSpec.describe 'Super Admin Application Config API', type: :request do
 | 
				
			|||||||
        post '/super_admin/app_config', params: { app_config: { TESTKEY: 'TESTVALUE' } }
 | 
					        post '/super_admin/app_config', params: { app_config: { TESTKEY: 'TESTVALUE' } }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        expect(response.status).to eq(302)
 | 
					        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')
 | 
					        config = GlobalConfig.get('TESTKEY')
 | 
				
			||||||
        expect(config['TESTKEY']).to eq('TESTVALUE')
 | 
					        expect(config['TESTKEY']).to eq('TESTVALUE')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user