Sha256: fad78c1477a511e5a2502b57313b6a9252c9f34e56e4d9075e30703c68527aa4
Contents?: true
Size: 1.19 KB
Versions: 12
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe RedisWebManager::KeysHelper, type: :helper do describe 'helper' do it 'returns Array of types' do expect(helper.types_filters).to eql([%w[All all], %w[String string], %w[Hash hash], %w[Set set], %w[Zset zset], %w[List list]]) end it 'returns Array of expiration' do expect(helper.expiry_filters).to eq( [%w[All all], ['No expiry', -1], ['Less than 1 hour', 3600], ['Less than 1 week', 604_800], ['Less than 1 month', 2_592_000], ['Less than 6 months', 15_552_000]] ) end it 'returns Array of memories' do expect(helper.memory_filters).to eq( [%w[All all], ['Less than 1 KB', 1000], ['Less than 10 KB', 10_000], ['Less than 100 KB', 100_000], ['Less than 1 MB', 1_000_000], ['Less than 10 MB', 10_000_000], ['Less than 100 MB', 100_000_000]] ) end end end
Version data entries
12 entries across 12 versions & 1 rubygems