Sha256: 922b14d64800d498576d78eb7b80964ab8eb26a804acd5d2593f02368b28725d

Contents?: true

Size: 638 Bytes

Versions: 4

Compression:

Stored size: 638 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe RedisWebManager::Connection do
  let(:connection) do
    RedisWebManager::Connection.new
  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

4 entries across 4 versions & 1 rubygems

Version Path
redis_web_manager-0.2.1 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.2.0 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.1.8 spec/redis_web_manager_connection_spec.rb
redis_web_manager-0.1.6 spec/redis_web_manager_connection_spec.rb