summaryrefslogtreecommitdiff
path: root/spec/features/projects/classification_label_on_project_pages_spec.rb
blob: 92f8aa8eb8d5ccf15e5bec32b36bb0c8ad40e64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

require 'spec_helper'

describe 'Classification label on project pages' do
  let(:project) do
    create(:project, external_authorization_classification_label: 'authorized label')
  end
  let(:user) { create(:user) }

  before do
    stub_application_setting(external_authorization_service_enabled: true)
    project.add_maintainer(user)
    sign_in(user)
  end

  it 'shows the classification label on the project page' do
    visit project_path(project)

    expect(page).to have_content('authorized label')
  end
end