debian-mirror-gitlab/spec/requests/api/graphql/read_only_spec.rb
2023-03-04 22:38:38 +05:30

13 lines
325 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Requests on a read-only node', feature_category: :database 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