Sha256: a3a1764c9e3eb1ca0a22fe35bb0c5f34e51abac33a22997f8fce4ab2e0ff3844
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe RedisWebManager::Action do let(:action) do RedisWebManager::Action.new(RedisWebManager.redises.keys[0]) end let(:redis) do Redis.new end describe 'action' do it 'returns a OK (flushall)' do expect(action.flushall).to eql('OK') end it 'returns a OK (flushdb)' do expect(action.flushdb).to eql('OK') end it 'returns a 1 (del)' do redis.set('test', 'test') expect(action.del('test')).to eql(1) end it 'returns a OK (rename)' do redis.set('test', 'test') expect(action.rename('test', 'test2')).to eql('OK') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redis_web_manager-0.4.0 | spec/redis_web_manager_action_spec.rb |
redis_web_manager-0.3.9 | spec/redis_web_manager_action_spec.rb |
redis_web_manager-0.3.8 | spec/redis_web_manager_action_spec.rb |