Sha256: d2c9da15b12a8cb18fb09d9726ae1abd8fdee4134ffdbfe2f524dbc2085e3f0f
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
require 'fakeredis' require 'redis' module RapidRack RSpec.describe RedisRegistry do let(:overrides) { Module.new } subject do klass = Class.new klass.send(:extend, described_class) klass.send(:extend, overrides) end context '#register_jti' do let(:value) { 'abcd' } it 'returns true for a new jti' do expect(subject.register_jti(value)).to be_truthy end it 'returns false for a previously seen jti' do subject.register_jti(value) expect(subject.register_jti(value)).to be_falsey end end end end
Version data entries
4 entries across 4 versions & 1 rubygems