summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/application_rate_limiter/base_strategy_spec.rb
blob: b34ac538b2495804b89aa26007e2a291a007aee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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