spec/bearcat/rate_limiting_spec.rb in bearcat-1.5.19 vs spec/bearcat/rate_limiting_spec.rb in bearcat-1.5.20
- old
+ new
@@ -2,10 +2,10 @@
require 'sidekiq'
describe Bearcat::RateLimiting do
let!(:subject) { Bearcat::RateLimiting::RedisLimiter.new }
- let!(:client) { Bearcat::Client.new(rate_limiter: subject, token: SecureRandom.hex) }
+ let!(:client) { Bearcat::Client.new(prefix: "http://canvas.instructure.com", rate_limiter: subject, token: SecureRandom.hex) }
let!(:token) { client.send(:rate_limit_key) }
def fillup(count, rate: 100)
count.times do
subject.apply(token) do