Sha256: 8de262c7b10ef083ffc0e4cda3e891cf15110739a6b96eb6ee0ceb04fe7f8f96

Contents?: true

Size: 671 Bytes

Versions: 7

Compression:

Stored size: 671 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

7 entries across 7 versions & 1 rubygems

Version Path
redis_web_manager-0.3.6 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.5 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.4 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.3 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.2 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.1 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.3.0 spec/redis_web_manager_connection_spec.rb