debian-mirror-gitlab/spec/requests/admin/applications_controller_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
563 B
Ruby
Raw Normal View History

2021-12-11 22:18:48 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe Admin::ApplicationsController, :enable_admin_mode,
2023-05-27 22:25:52 +05:30
feature_category: :system_access do
2021-12-11 22:18:48 +05:30
let_it_be(:admin) { create(:admin) }
let_it_be(:application) { create(:oauth_application, owner_id: nil, owner_type: nil) }
let_it_be(:show_path) { admin_application_path(application) }
let_it_be(:create_path) { admin_applications_path }
before do
sign_in(admin)
end
include_examples 'applications controller - GET #show'
include_examples 'applications controller - POST #create'
end