debian-mirror-gitlab/spec/lib/gitlab/throttle_spec.rb
2020-08-09 17:44:08 +05:30

15 lines
411 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Throttle do
describe '.protected_paths_enabled?' do
subject { described_class.protected_paths_enabled? }
it 'returns Application Settings throttle_protected_paths_enabled?' do
expect(Gitlab::CurrentSettings.current_application_settings).to receive(:throttle_protected_paths_enabled?)
subject
end
end
end