style: reduce line length

This commit is contained in:
Shivam Mishra
2025-06-09 18:20:38 +05:30
parent 795310d549
commit 0ad16cf115
@@ -37,7 +37,11 @@ RSpec.describe 'Microsoft Authorization API', type: :request do
params = CGI.parse(uri.query)
expect(url).to start_with('https://login.microsoftonline.com/common/oauth2/v2.0/authorize')
expect(params['scope']).to eq(['offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send openid profile'])
expected_scope = [
'offline_access https://outlook.office.com/IMAP.AccessAsUser.All ' \
'https://outlook.office.com/SMTP.Send openid profile'
]
expect(params['scope']).to eq(expected_scope)
expect(params['redirect_uri']).to eq(["#{ENV.fetch('FRONTEND_URL', 'http://localhost:3000')}/microsoft/callback"])
# Validate state parameter exists and can be decoded back to the account