gitlab-org--gitlab-foss/spec/lib/gitlab/application_rate_limiter/base_strategy_spec.rb

18 lines
443 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::ApplicationRateLimiter::BaseStrategy do
describe '#increment' do
it 'raises NotImplementedError' do
expect { subject.increment('cache_key', 0) }.to raise_error(NotImplementedError)
end
end
describe '#read' do
it 'raises NotImplementedError' do
expect { subject.read('cache_key') }.to raise_error(NotImplementedError)
end
end
end