Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_strategy_spec.rb « application_rate_limiter « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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