Sha256: de79bc2963e2cc0c677957a993ad2a5d989d50b390c852c82c8246485fef107a

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe RedisWebManager::Data do
  let(:data) do
    RedisWebManager::Data.new(RedisWebManager.redises.keys[0])
  end

  describe 'data' do
    it 'returns a OK (perform)' do
      expect(data.perform).to eql('OK')
    end

    it 'returns a Array of keys' do
      expect(data.keys).to be_a_kind_of(Array)
    end

    it 'returns a Array of keys deleted' do
      expect(data.flush).to be_a_kind_of(Array)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.9 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.8 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.6 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.5 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.4 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.3 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.2 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.1 spec/redis_web_manager_data_spec.rb
redis_web_manager-0.3.0 spec/redis_web_manager_data_spec.rb