Merge commit 'dbb20f76a781defe35d077529c8269d712c1fbd2' into glitch-soc/merge-upstream

Conflicts:
- `tsconfig.json`:
  glitch-soc had extra paths under `app/javascript/flavours`, but upstream
  added `app/javascript` as a whole, so updated to upstream's.
This commit is contained in:
Claire
2025-06-25 19:29:09 +02:00
91 changed files with 1108 additions and 311 deletions

View File

@@ -2,7 +2,9 @@
require 'rails_helper'
RSpec.describe Oauth::AuthorizationsController do
RSpec.describe OAuth::AuthorizationsController do
render_views
let(:app) { Doorkeeper::Application.create!(name: 'test', redirect_uri: 'http://localhost/', scopes: 'read') }
describe 'GET #new' do
@@ -24,6 +26,8 @@ RSpec.describe Oauth::AuthorizationsController do
.to have_http_status(200)
expect(response.headers['Cache-Control'])
.to include('private, no-store')
expect(response.parsed_body.at('body.modal-layout'))
.to be_present
expect(controller.stored_location_for(:user))
.to eq authorize_path_for(app)
end

View File

@@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe Oauth::AuthorizedApplicationsController do
RSpec.describe OAuth::AuthorizedApplicationsController do
render_views
describe 'GET #index' do
@@ -21,6 +21,8 @@ RSpec.describe Oauth::AuthorizedApplicationsController do
.to have_http_status(200)
expect(response.headers['Cache-Control'])
.to include('private, no-store')
expect(response.parsed_body.at('body.admin'))
.to be_present
expect(controller.stored_location_for(:user))
.to eq '/oauth/authorized_applications'
end