Welcome to mirror list, hosted at ThFree Co, Russian Federation.

applications_controller_spec.rb « admin « requests « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 367697b1289654068d99736f094e8a9a00dc3c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Admin::ApplicationsController, :enable_admin_mode,
feature_category: :system_access do
  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