2019-12-04 19:07:50 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe Gitlab::Throttle do
|
2019-12-04 19:07:50 -05:00
|
|
|
describe '.protected_paths_enabled?' do
|
|
|
|
subject { described_class.protected_paths_enabled? }
|
|
|
|
|
2020-05-07 20:09:56 -04:00
|
|
|
it 'returns Application Settings throttle_protected_paths_enabled?' do
|
|
|
|
expect(Gitlab::CurrentSettings.current_application_settings).to receive(:throttle_protected_paths_enabled?)
|
2019-12-04 19:07:50 -05:00
|
|
|
|
2020-05-07 20:09:56 -04:00
|
|
|
subject
|
2019-12-04 19:07:50 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|