From 0ad16cf115ff4287a4efd7a901f50eeb2f3e4b9f Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 9 Jun 2025 18:20:38 +0530 Subject: [PATCH] style: reduce line length --- .../v1/accounts/microsoft/authorization_controller_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/controllers/api/v1/accounts/microsoft/authorization_controller_spec.rb b/spec/controllers/api/v1/accounts/microsoft/authorization_controller_spec.rb index 7ac74b5da..686b87981 100644 --- a/spec/controllers/api/v1/accounts/microsoft/authorization_controller_spec.rb +++ b/spec/controllers/api/v1/accounts/microsoft/authorization_controller_spec.rb @@ -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