File: rack_attack_dalli_proxy_spec.rb

package info (click to toggle)
ruby-rack-attack 6.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: ruby: 2,626; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

require_relative 'spec_helper'

describe Rack::Attack::StoreProxy::DalliProxy do
  it 'should stub Dalli::Client#with on older clients' do
    proxy = Rack::Attack::StoreProxy::DalliProxy.new(Class.new)
    proxy.with {} # will not raise an error
  end
end