Sha256: 607710e68381fd35a257206f28f17b703512393b63df3b1d213f4cd343e1c437

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

require 'rspec'
require 'redis-throttler'
require 'redis-throttler/base'
require 'timecop'

class TestClass
  include RedisThrottler
  throttle :logins, limit: 10, for: 5000

  def initialize
    @id = 1234
  end

  def id
    @id
  end
end

@test = TestClass.new

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis-throttler-0.1.7 spec/spec_helper.rb