gitlab-org--gitlab-foss/spec/requests/api/graphql/read_only_spec.rb

13 lines
296 B
Ruby

# 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