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

require 'spec_helper'

RSpec.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