No known key found for this signature in database
GPG key ID:
B5690EEEBB952194
439 changed files with
441 additions and
439 deletions
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::AccountActionsController do
|
|
|
|
|
RSpec.describe Admin::AccountActionsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::ActionLogsController do
|
|
|
|
|
RSpec.describe Admin::ActionLogsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
# Action logs typically cause issues when their targets are not in the database
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::BaseController do
|
|
|
|
|
RSpec.describe Admin::BaseController do
|
|
|
|
|
controller do
|
|
|
|
|
def success
|
|
|
|
|
authorize :dashboard, :index?
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::CustomEmojisController do
|
|
|
|
|
RSpec.describe Admin::CustomEmojisController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::DashboardController do
|
|
|
|
|
RSpec.describe Admin::DashboardController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
describe 'GET #index' do
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::FollowRecommendationsController do
|
|
|
|
|
RSpec.describe Admin::FollowRecommendationsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::InvitesController do
|
|
|
|
|
RSpec.describe Admin::InvitesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::IpBlocksController do
|
|
|
|
|
RSpec.describe Admin::IpBlocksController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::RelationshipsController do
|
|
|
|
|
RSpec.describe Admin::RelationshipsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::RelaysController do
|
|
|
|
|
RSpec.describe Admin::RelaysController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::ReportNotesController do
|
|
|
|
|
RSpec.describe Admin::ReportNotesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Reports::ActionsController do
|
|
|
|
|
RSpec.describe Admin::Reports::ActionsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::ReportsController do
|
|
|
|
|
RSpec.describe Admin::ReportsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::RolesController do
|
|
|
|
|
RSpec.describe Admin::RolesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:permissions) { UserRole::Flags::NONE }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::RulesController do
|
|
|
|
|
RSpec.describe Admin::RulesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::SiteUploadsController do
|
|
|
|
|
RSpec.describe Admin::SiteUploadsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::StatusesController do
|
|
|
|
|
RSpec.describe Admin::StatusesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Trends::Links::PreviewCardProvidersController do
|
|
|
|
|
RSpec.describe Admin::Trends::Links::PreviewCardProvidersController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Trends::LinksController do
|
|
|
|
|
RSpec.describe Admin::Trends::LinksController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Trends::StatusesController do
|
|
|
|
|
RSpec.describe Admin::Trends::StatusesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Trends::TagsController do
|
|
|
|
|
RSpec.describe Admin::Trends::TagsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Users::RolesController do
|
|
|
|
|
RSpec.describe Admin::Users::RolesController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:current_role) { UserRole.create(name: 'Foo', permissions: UserRole::FLAGS[:manage_roles], position: 10) }
|
|
|
|
|
|
|
|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
require 'webauthn/fake_client'
|
|
|
|
|
|
|
|
|
|
describe Admin::Users::TwoFactorAuthenticationsController do
|
|
|
|
|
RSpec.describe Admin::Users::TwoFactorAuthenticationsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::WarningPresetsController do
|
|
|
|
|
RSpec.describe Admin::WarningPresetsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::Webhooks::SecretsController do
|
|
|
|
|
RSpec.describe Admin::Webhooks::SecretsController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
describe Admin::WebhooksController do
|
|
|
|
|
RSpec.describe Admin::WebhooksController do
|
|
|
|
|
render_views
|
|
|
|
|
|
|
|
|
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
|
|
|
|
|