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

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

RSpec.shared_examples 'requires feature flag `incubation_5mp_google_cloud` enabled' do
  context 'when feature flag is disabled' do
    before do
      project.add_maintainer(user)
      stub_feature_flags(incubation_5mp_google_cloud: false)
    end

    it 'renders not found' do
      sign_in(user)

      subject

      expect(response).to have_gitlab_http_status(:not_found)
    end
  end
end