|
|
|
@ -27,7 +27,7 @@ RSpec.describe 'SMS Settings', type: :request do
|
|
|
|
before { sign_in admin }
|
|
|
|
before { sign_in admin }
|
|
|
|
|
|
|
|
|
|
|
|
it 'creates a new SMS config and redirects with notice' do
|
|
|
|
it 'creates a new SMS config and redirects with notice' do
|
|
|
|
expect {
|
|
|
|
expect do
|
|
|
|
post settings_sms_path, params: {
|
|
|
|
post settings_sms_path, params: {
|
|
|
|
encrypted_config: {
|
|
|
|
encrypted_config: {
|
|
|
|
value: {
|
|
|
|
value: {
|
|
|
|
@ -39,7 +39,7 @@ RSpec.describe 'SMS Settings', type: :request do
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}.to change(EncryptedConfig, :count).by(1)
|
|
|
|
end.to change(EncryptedConfig, :count).by(1)
|
|
|
|
|
|
|
|
|
|
|
|
expect(response).to redirect_to(settings_sms_path)
|
|
|
|
expect(response).to redirect_to(settings_sms_path)
|
|
|
|
follow_redirect!
|
|
|
|
follow_redirect!
|
|
|
|
|