Fix RuboCop issues: use do...end for multi-line blocks, align hash keys

pull/687/head
Wabo 3 weeks ago
parent 07777a83be
commit a5b0cd6a94

@ -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!

Loading…
Cancel
Save