Sha256: 64524203a83bac286ed3d76853b2d280055355bdff8a51e6d8d60635bd608fb9
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true require "assert" require "hella-redis/connection_pool" require "redis-namespace" class HellaRedis::ConnectionPool class UnitTests < Assert::Context desc "HellaRedis::Connection" setup do @connection_pool = HellaRedis::ConnectionPool.new(Factory.config) end subject{ @connection_pool } should have_imeths :connection should "build a redis namespace and yield it using `connection`" do subject.connection do |connection| assert_that(connection).is_an_instance_of(::Redis::Namespace) assert_that{ connection.get(Factory.string) }.does_not_raise end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hella-redis-0.5.0 | test/unit/connection_pool_tests.rb |