Fix linting issues: remove trailing newlines, align hash keys

pull/687/head
Wabo 2 weeks ago
parent 036991134b
commit 07777a83be

@ -235,4 +235,3 @@
}); });
})(); })();
</script> </script>

@ -32,10 +32,10 @@ RSpec.describe 'SMS Settings' do
it 'shows the test SMS section when SMS is configured and enabled' do it 'shows the test SMS section when SMS is configured and enabled' do
create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY, create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY,
value: { 'enabled' => true, 'provider' => 'twilio', value: { 'enabled' => true, 'provider' => 'twilio',
'twilio_account_sid' => 'AC123', 'twilio_account_sid' => 'AC123',
'twilio_auth_token' => 'token', 'twilio_auth_token' => 'token',
'twilio_from' => '+15551234567' }) 'twilio_from' => '+15551234567' })
visit settings_sms_path visit settings_sms_path
@ -55,8 +55,8 @@ RSpec.describe 'SMS Settings' do
context 'when SMS is enabled' do context 'when SMS is enabled' do
before do before do
create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY, create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY,
value: { 'enabled' => true, 'provider' => 'bulkvs', value: { 'enabled' => true, 'provider' => 'bulkvs',
'basic_auth_token' => 'tok', 'from_number' => '15551234567' }) 'basic_auth_token' => 'tok', 'from_number' => '15551234567' })
end end
it 'shows the provider section on page load' do it 'shows the provider section on page load' do
@ -78,8 +78,8 @@ RSpec.describe 'SMS Settings' do
it 'hides the provider section when the toggle is turned off' do it 'hides the provider section when the toggle is turned off' do
create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY, create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY,
value: { 'enabled' => true, 'provider' => 'bulkvs', value: { 'enabled' => true, 'provider' => 'bulkvs',
'basic_auth_token' => 'tok', 'from_number' => '15551234567' }) 'basic_auth_token' => 'tok', 'from_number' => '15551234567' })
visit settings_sms_path visit settings_sms_path
@ -94,8 +94,8 @@ RSpec.describe 'SMS Settings' do
describe 'provider switching' do describe 'provider switching' do
before do before do
create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY, create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY,
value: { 'enabled' => true, 'provider' => 'bulkvs', value: { 'enabled' => true, 'provider' => 'bulkvs',
'basic_auth_token' => 'tok', 'from_number' => '15551234567' }) 'basic_auth_token' => 'tok', 'from_number' => '15551234567' })
visit settings_sms_path visit settings_sms_path
end end
@ -151,10 +151,10 @@ RSpec.describe 'SMS Settings' do
it 'retains existing Twilio auth token when left blank on re-save' do it 'retains existing Twilio auth token when left blank on re-save' do
create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY, create(:encrypted_config, account:, key: EncryptedConfig::SMS_CONFIGS_KEY,
value: { 'enabled' => true, 'provider' => 'twilio', value: { 'enabled' => true, 'provider' => 'twilio',
'twilio_account_sid' => 'AC123', 'twilio_account_sid' => 'AC123',
'twilio_auth_token' => 'secret_token', 'twilio_auth_token' => 'secret_token',
'twilio_from' => '+15551234567' }) 'twilio_from' => '+15551234567' })
visit settings_sms_path visit settings_sms_path

Loading…
Cancel
Save