Use more accurate `redirect_uri` in oauth spec (#30212)
parent
040aaf3a48
commit
fa43a6c835
|
@ -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) }
|
||||||
|
|
Loading…
Reference in New Issue