debian-mirror-gitlab/spec/requests/api/graphql/read_only_spec.rb
2021-01-30 21:13:34 +05:30

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