debian-mirror-gitlab/spec/lib/gitlab/throttle_spec.rb

16 lines
405 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Throttle do
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