debian-mirror-gitlab/spec/lib/gitlab/middleware/read_only_spec.rb
2021-01-29 00:20:46 +05:30

13 lines
306 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Middleware::ReadOnly do
context 'when database is read-only' do
before do
allow(Gitlab::Database).to receive(:read_only?) { true }
end
it_behaves_like 'write access for a read-only GitLab instance'
end
end