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

read_only_spec.rb « graphql « api « requests « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d2a45603886347c8ead03c168b6c00bca705ff8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Requests on a read-only node' do
  context 'when db is read-only' do
    before do
      allow(Gitlab::Database).to receive(:read_only?) { true }
    end

    it_behaves_like 'graphql on a read-only GitLab instance'
  end
end