2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Gitlab::Throttle do
|
2020-01-01 13:55:28 +05:30
|
|
|
describe '.protected_paths_enabled?' do
|
|
|
|
subject { described_class.protected_paths_enabled? }
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
it 'returns Application Settings throttle_protected_paths_enabled?' do
|
|
|
|
expect(Gitlab::CurrentSettings.current_application_settings).to receive(:throttle_protected_paths_enabled?)
|
2020-01-01 13:55:28 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
subject
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|