Use more accurate redirect_uri in oauth spec (#30212)

This commit is contained in:
Matt Jankowski 2024-05-10 05:43:59 -04:00 committed by GitHub
parent 040aaf3a48
commit fa43a6c835
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
require 'rails_helper' require 'rails_helper'
describe 'Using OAuth from an external app' do describe 'Using OAuth from an external app' do
let(:client_app) { Doorkeeper::Application.create!(name: 'test', redirect_uri: 'http://localhost/health', scopes: 'read') } let(:client_app) { Doorkeeper::Application.create!(name: 'test', redirect_uri: about_url(host: Rails.application.config.x.local_domain), scopes: 'read') }
context 'when the user is already logged in' do context 'when the user is already logged in' do
let!(:user) { Fabricate(:user) } let!(:user) { Fabricate(:user) }