test/internals_test.rb in redis-2.2.0 vs test/internals_test.rb in redis-2.2.1
- old
+ new
@@ -10,12 +10,15 @@
[Redis.new(OPTIONS.merge(:logger => ::Logger.new(log))), log]
end
$TEST_PIPELINING = true
-$TEST_INSPECT = true
load File.expand_path("./lint/internals.rb", File.dirname(__FILE__))
+
+test "provides a meaningful inspect" do |r, _|
+ assert "#<Redis client v#{Redis::VERSION} connected to redis://127.0.0.1:6379/15 (Redis v#{r.info["redis_version"]})>" == r.inspect
+end
test "Redis.current" do
Redis.current.set("foo", "bar")
assert "bar" == Redis.current.get("foo")