Sha256: 71daea5e51d90ab3d5abdc0a2b6af4f7f6411dc573fbafce54aa9044d4e3c210

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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

  describe 'connection' do
    it 'returns a host' do
      expect(connection.host).to eql('127.0.0.1')
    end

    it 'returns a port' do
      expect(connection.port).to eql(6379)
    end

    it 'returns a db' do
      expect(connection.db).to eql(0)
    end

    it 'returns an id' do
      expect(connection.id).to eql('redis://127.0.0.1:6379/0')
    end

    it 'returns a location' do
      expect(connection.location).to eql('127.0.0.1:6379')
    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_connection_spec.rb
redis_web_manager-0.3.9 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.8 spec/redis_web_manager_connection_spec.rb